Index: test/mjsunit/wasm/asm-wasm.js |
diff --git a/test/mjsunit/wasm/asm-wasm.js b/test/mjsunit/wasm/asm-wasm.js |
index 2efb006436a23333c7bf5bb48d92a46022a7d2d5..7d271f30cc73052df66507024891a09cc2e3bbf9 100644 |
--- a/test/mjsunit/wasm/asm-wasm.js |
+++ b/test/mjsunit/wasm/asm-wasm.js |
@@ -1493,3 +1493,16 @@ assertWasm(1, TestXor); |
assertEquals(0x80000000, wasm.u0x80000000()); |
assertEquals(0x87654321, wasm.u0x87654321()); |
})(); |
+ |
+(function SubtractDebug() { |
+ function asmModule() { |
+ "use asm"; |
+ function main(x) { |
+ x = x|0; |
+ return (x - 0)|0; |
+ } |
+ return {main:main}; |
+ } |
+ var wasm = Wasm.instantiateModuleFromAsm(asmModule.toString()); |
+ assertEquals(-1, wasm.main(-1)); |
+})(); |