summaryrefslogtreecommitdiff
path: root/test/unit.fromasm
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.fromasm
parentc1823df9feea7ea90e3886cb18fedee56df48156 (diff)
downloadbinaryen-5acbb8d34f88eae9b5b50cf5d00f86dc56a7057c.tar.gz
binaryen-5acbb8d34f88eae9b5b50cf5d00f86dc56a7057c.tar.bz2
binaryen-5acbb8d34f88eae9b5b50cf5d00f86dc56a7057c.zip
handle continues in one-time loops
Diffstat (limited to 'test/unit.fromasm')
-rw-r--r--test/unit.fromasm19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/unit.fromasm b/test/unit.fromasm
index be62737b9..c578d8b63 100644
--- a/test/unit.fromasm
+++ b/test/unit.fromasm
@@ -466,6 +466,25 @@
(i32.const 0)
)
)
+ (func $continues
+ (loop $while-out$0 $while-in$1
+ (call $print
+ (i32.const 1)
+ )
+ (loop $do-once$2 $unlikely-continue$3
+ (call $print
+ (i32.const 5)
+ )
+ (br_if $unlikely-continue$3
+ (call $check)
+ )
+ )
+ (call $print
+ (i32.const 2)
+ )
+ (br $while-in$1)
+ )
+ )
(func $z
(nop)
)