aboutsummaryrefslogtreecommitdiff
path: root/tools/test-js-optimizer-asm-last.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test-js-optimizer-asm-last.js')
-rw-r--r--tools/test-js-optimizer-asm-last.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/test-js-optimizer-asm-last.js b/tools/test-js-optimizer-asm-last.js
index 9ca32320..e83822f8 100644
--- a/tools/test-js-optimizer-asm-last.js
+++ b/tools/test-js-optimizer-asm-last.js
@@ -45,6 +45,12 @@ function looop() {
break;
}
}
+ while (1) {
+ do_it();
+ if (!x()) {
+ break;
+ }
+ }
}
// EMSCRIPTEN_GENERATED_FUNCTIONS: ["finall", "looop"]