diff options
Diffstat (limited to 'tests/test_core.py')
-rw-r--r-- | tests/test_core.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index 576cb8c7..66f9b8e4 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -8616,6 +8616,13 @@ void*:16 assert ' & 255]()' not in original, 'big function table does not exist' assert ' & 255]()' in final, 'big function table exists' + assert 'asm1' in test_modes + if self.run_name == 'asm1': + generated = open('src.cpp.o.js').read() + main = generated[generated.find('function runPostSets'):] + main = main[:main.find('\n}')] + assert main.count('\n') == 7, 'must not emit too many postSets: %d' % main.count('\n') + def test_gcc_unmangler(self): Settings.NAMED_GLOBALS = 1 # test coverage for this |