diff options
Diffstat (limited to 'test/unit.asm.js')
-rw-r--r-- | test/unit.asm.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/unit.asm.js b/test/unit.asm.js index 5b958a111..2f307e085 100644 --- a/test/unit.asm.js +++ b/test/unit.asm.js @@ -234,6 +234,19 @@ function asm(global, env, buffer) { -3.14159; } + function zeroInit(x) { + x = x | 0; + var y = 0; // reusing this with x is dangerous - x has a value, and y needs to start at 0! + if (lb(0) | 0) { + if (lb(1) | 0) y = 3; + } else { + y = 3; + } + if ((y | 0) == 3) { + lb(2) | 0; + } + } + function z() { } function w() { |