summaryrefslogtreecommitdiff
path: root/test/unit.asm.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-03-05 22:31:09 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-03-05 22:31:09 -0800
commit5acbb8d34f88eae9b5b50cf5d00f86dc56a7057c (patch)
tree88107d1717172a84814a9c9ac1bde6c5c0ad36b6 /test/unit.asm.js
parentc1823df9feea7ea90e3886cb18fedee56df48156 (diff)
downloadbinaryen-5acbb8d34f88eae9b5b50cf5d00f86dc56a7057c.tar.gz
binaryen-5acbb8d34f88eae9b5b50cf5d00f86dc56a7057c.tar.bz2
binaryen-5acbb8d34f88eae9b5b50cf5d00f86dc56a7057c.zip
handle continues in one-time loops
Diffstat (limited to 'test/unit.asm.js')
-rw-r--r--test/unit.asm.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unit.asm.js b/test/unit.asm.js
index e5673146d..53e6483ef 100644
--- a/test/unit.asm.js
+++ b/test/unit.asm.js
@@ -151,6 +151,16 @@ function asm() {
abort(55);
abort();
}
+ function continues() {
+ while (1) {
+ print(1);
+ do {
+ print(5);
+ if (check()) continue;
+ } while (0);
+ print(2);
+ }
+ }
function z() {
}