summaryrefslogtreecommitdiff
path: root/test/unit.asm.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit.asm.js')
-rw-r--r--test/unit.asm.js31
1 files changed, 30 insertions, 1 deletions
diff --git a/test/unit.asm.js b/test/unit.asm.js
index 53e6483ef..5bb84bdcd 100644
--- a/test/unit.asm.js
+++ b/test/unit.asm.js
@@ -9,6 +9,8 @@ function asm() {
var Math_ceil = global.Math.ceil;
var abort = env.abort;
+ var print = env.print;
+ var h = env.h;
function big_negative() {
var temp = 0.0;
@@ -53,6 +55,7 @@ function asm() {
}
function switcher(x) {
x = x | 0;
+ var waka = 0;
switch (x | 0) {
case 1: return 1;
case 2: return 2;
@@ -77,6 +80,32 @@ function asm() {
break;
}
}
+
+ L1 : while (1) {
+ L3 : while (1) switch (x) {
+ case -1:
+ {
+ break L1;
+ break;
+ }
+ case 116:
+ {
+ waka = 1;
+ break;
+ }
+ case 110:
+ {
+ break L3;
+ break;
+ }
+ default:
+ {
+ break L1;
+ }
+ }
+ h(120);
+ }
+
return 0;
}
function blocker() {
@@ -156,7 +185,7 @@ function asm() {
print(1);
do {
print(5);
- if (check()) continue;
+ if (0) continue;
} while (0);
print(2);
}