diff options
author | Alon Zakai (kripken) <alonzakai@gmail.com> | 2017-01-01 16:21:19 -0800 |
---|---|---|
committer | Alon Zakai (kripken) <alonzakai@gmail.com> | 2017-01-04 17:33:52 -0800 |
commit | 9be46c626ce03d2967c817a3f8f2ffce0bc06a26 (patch) | |
tree | 5e398ad8273fbc6aa7983a3db1e170ff20dd0cea /test/break-to-return.wasm.fromBinary | |
parent | 649bbfc66fff32bf2bb34eec2106e28a4adef585 (diff) | |
download | binaryen-9be46c626ce03d2967c817a3f8f2ffce0bc06a26.tar.gz binaryen-9be46c626ce03d2967c817a3f8f2ffce0bc06a26.tar.bz2 binaryen-9be46c626ce03d2967c817a3f8f2ffce0bc06a26.zip |
handle a binary that breaks to return
Diffstat (limited to 'test/break-to-return.wasm.fromBinary')
-rw-r--r-- | test/break-to-return.wasm.fromBinary | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/break-to-return.wasm.fromBinary b/test/break-to-return.wasm.fromBinary new file mode 100644 index 000000000..cf5d2461d --- /dev/null +++ b/test/break-to-return.wasm.fromBinary @@ -0,0 +1,16 @@ +(module + (type $0 (func (param i32 i32) (result i32))) + (memory $0 256 256) + (export "add" (func $0)) + (func $0 (type $0) (param $var$0 i32) (param $var$1 i32) (result i32) + (block $binaryen|break-to-return i32 + (br $binaryen|break-to-return + (i32.add + (get_local $var$0) + (get_local $var$1) + ) + ) + ) + ) +) + |