diff options
author | Alon Zakai (kripken) <alonzakai@gmail.com> | 2017-07-09 22:02:45 -0700 |
---|---|---|
committer | Alon Zakai (kripken) <alonzakai@gmail.com> | 2017-07-11 10:40:17 -0700 |
commit | 18e096c4940f51df50d5f7a4e9fff03cc2f3beaf (patch) | |
tree | 0f2f7074c3bd6e511229e44c2a649c974f427d66 /test | |
parent | ee7538a3e912b20bf295cdfce81a531fafb0bb7c (diff) | |
download | binaryen-18e096c4940f51df50d5f7a4e9fff03cc2f3beaf.tar.gz binaryen-18e096c4940f51df50d5f7a4e9fff03cc2f3beaf.tar.bz2 binaryen-18e096c4940f51df50d5f7a4e9fff03cc2f3beaf.zip |
finalize new drops in SimplifyLocals
Diffstat (limited to 'test')
-rw-r--r-- | test/passes/simplify-locals-nostructure.txt | 6 | ||||
-rw-r--r-- | test/passes/simplify-locals-nostructure.wast | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/test/passes/simplify-locals-nostructure.txt b/test/passes/simplify-locals-nostructure.txt index 2502c4549..6857a4c7a 100644 --- a/test/passes/simplify-locals-nostructure.txt +++ b/test/passes/simplify-locals-nostructure.txt @@ -62,4 +62,10 @@ (get_local $b) ) ) + (func $no-unreachable (type $0) + (local $x i32) + (drop + (unreachable) + ) + ) ) diff --git a/test/passes/simplify-locals-nostructure.wast b/test/passes/simplify-locals-nostructure.wast index 33f891e61..548109237 100644 --- a/test/passes/simplify-locals-nostructure.wast +++ b/test/passes/simplify-locals-nostructure.wast @@ -28,5 +28,13 @@ ) (drop (get_local $b)) ) + (func $no-unreachable + (local $x i32) + (drop + (tee_local $x + (unreachable) + ) + ) + ) ) |