summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/check.py b/check.py
index 9dbedc3d2..528bc34cb 100755
--- a/check.py
+++ b/check.py
@@ -361,8 +361,11 @@ for asm in tests:
cmd += ['--imprecise']
wasm += '.imprecise'
if not opts:
- cmd += ['--no-opts']
wasm += '.no-opts'
+ if precise:
+ cmd += ['-O0'] # test that -O0 does nothing
+ else:
+ cmd += ['-O']
if precise and opts:
# test mem init importing
open('a.mem', 'wb').write(asm)