Skip to content

Commit 78b3d46

Browse files
committed
Add test for GLOBAL_BASE and SIDE_MODULE error message. NFC
1 parent 5643c26 commit 78b3d46

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_other.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,6 +1273,10 @@ def test_wl_stackfirst(self):
12731273
err = self.expect_fail(cmd + ['-sGLOBAL_BASE=1024'])
12741274
self.assertContained('error: --stack-first is not compatible with -sGLOBAL_BASE', err)
12751275

1276+
def test_side_module_global_base(self):
1277+
err = self.expect_fail([EMCC, test_file('hello_world.c'), '-Werror', '-sGLOBAL_BASE=1024', '-sSIDE_MODULE'])
1278+
self.assertContained('emcc: error: GLOBAL_BASE is not compatible with SIDE_MODULE', err)
1279+
12761280
@parameterized({
12771281
# In a simple -O0 build we do not set --low-memory-unused (as the stack is
12781282
# first, which is nice for debugging but bad for code size (larger globals)

0 commit comments

Comments
 (0)