diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-11-11 11:56:51 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-11 11:56:51 -0800 |
commit | 117f357f9c08fd3297f5c34cdd0a43227079f059 (patch) | |
tree | 85f85b3785b2390a3681d497f8849be0447b80c0 /tests/test_core.py | |
parent | 0ea99d4659ec686115c70f0b7e67fa829739c1e0 (diff) | |
parent | 37d0e6c55f9f48255b5ac34426196ddf6d5072a2 (diff) |
Merge branch 'incoming' into f32
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 30b9c70f..37179ff1 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -3851,6 +3851,10 @@ def process(filename): double get() { double ret = 0; __asm __volatile__("Math.abs(-12/3.3)":"=r"(ret)); // write to a variable + asm("#comment1"); + asm volatile("#comment2"); + asm volatile("#comment3\n" + "#comment4\n"); return ret; } @@ -3869,6 +3873,9 @@ def process(filename): ''' self.do_run(src, 'Inline JS is very cool\n3.64\n') # TODO 1\n2\n3\n1\n2\n3\n') + if self.emcc_args == []: # opts will eliminate the comments + out = open('src.cpp.o.js').read() + for i in range(1, 5): assert ('comment%d' % i) in out def test_inlinejs2(self): if not self.is_le32(): return self.skip('le32 needed for inline js') |