Index: test/mjsunit/wasm/asm-wasm.js |
diff --git a/test/mjsunit/wasm/asm-wasm.js b/test/mjsunit/wasm/asm-wasm.js |
index 6aaea614fc07ab98dc914e037ae1f014f399314c..b1e73c1edabd1f0c38f5fffe899d1ebcdf9f9a75 100644 |
--- a/test/mjsunit/wasm/asm-wasm.js |
+++ b/test/mjsunit/wasm/asm-wasm.js |
@@ -1596,3 +1596,35 @@ function TestSingleFunctionModule() { |
} |
assertEquals(7, TestSingleFunctionModule()(3, 4)); |
+ |
+ |
+function TestNotZero() { |
+ "use asm"; |
+ function caller() { |
+ if (!0) { |
+ return 44; |
+ } else { |
+ return 55; |
+ } |
+ return 0; |
+ } |
+ return {caller: caller}; |
+} |
+ |
+assertWasm(44, TestNotZero); |
+ |
+ |
+function TestNotOne() { |
+ "use asm"; |
+ function caller() { |
+ if (!1) { |
+ return 44; |
+ } else { |
+ return 55; |
+ } |
+ return 0; |
+ } |
+ return {caller: caller}; |
+} |
+ |
+assertWasm(55, TestNotOne); |