aboutsummaryrefslogtreecommitdiff
path: root/tests/test_core.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-09 15:26:46 -0400
committerAlon Zakai <alonzakai@gmail.com>2013-10-09 15:26:46 -0400
commit7e5d2a672c8ad58cb20fbd4d10e2729851da39be (patch)
treeba2e21257aef176a0583f55d1c21b50188db657e /tests/test_core.py
parentce14f4f22d4dbfa0feed2e22bb5ba9a6defaa823 (diff)
use aliasing function pointers in -O1
Diffstat (limited to 'tests/test_core.py')
-rw-r--r--tests/test_core.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index 03fd4d56..f0c94170 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -8655,6 +8655,10 @@ void*:16
if Settings.QUANTUM_SIZE == 1: return self.skip('TODO: Figure out and try to fix')
if Settings.ASM_JS and '-O2' not in self.emcc_args: return self.skip('mozilla bug 863867')
+ assert 'asm2g' in test_modes
+ if self.run_name == 'asm2g':
+ Settings.ALIASING_FUNCTION_POINTERS = 1 - Settings.ALIASING_FUNCTION_POINTERS # flip for some more coverage here
+
if Settings.CORRECT_SIGNS == 0: Settings.CORRECT_SIGNS = 1 # Not sure why, but needed
post = '''