diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-08-22 21:35:04 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-09-07 09:55:06 -0700 |
commit | c05ac6a217cb7657c7aa4e248bcc76d47e65983d (patch) | |
tree | 4f5d78176d6d6746c9645864794478b88a4414a2 /test/unit.fromasm.no-opts | |
parent | 31fca059e62a10b0f1d3de3a3f517721a41a7595 (diff) | |
download | binaryen-c05ac6a217cb7657c7aa4e248bcc76d47e65983d.tar.gz binaryen-c05ac6a217cb7657c7aa4e248bcc76d47e65983d.tar.bz2 binaryen-c05ac6a217cb7657c7aa4e248bcc76d47e65983d.zip |
add a test for loop finalization
Diffstat (limited to 'test/unit.fromasm.no-opts')
-rw-r--r-- | test/unit.fromasm.no-opts | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/unit.fromasm.no-opts b/test/unit.fromasm.no-opts index 936601995..fbbc6e7ff 100644 --- a/test/unit.fromasm.no-opts +++ b/test/unit.fromasm.no-opts @@ -913,6 +913,31 @@ ) ) ) + (func $breakThroughMany (param $$s i32) + (block $label$break$L1 + (drop + (if + (get_local $$s) + (loop $while-in$2 + (block $while-out$1 + (if + (i32.eqz + (get_local $$s) + ) + (br $label$break$L1) + ) + (call $zeroInit + (i32.const 0) + ) + (br $while-in$2) + ) + ) + (i32.const 1337) + ) + ) + (nop) + ) + ) (func $z (nop) ) |