diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-04 17:16:22 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-04 17:16:22 -0800 |
commit | 15043f71f901882203cbaf0d98a6e325ed97f56a (patch) | |
tree | 4b2206b80b7bcf52077aea439a65c533988397ee /test | |
parent | c6d08d97c196e2ceae5e3b960befcd6c66916cad (diff) | |
download | binaryen-15043f71f901882203cbaf0d98a6e325ed97f56a.tar.gz binaryen-15043f71f901882203cbaf0d98a6e325ed97f56a.tar.bz2 binaryen-15043f71f901882203cbaf0d98a6e325ed97f56a.zip |
add RemoveUnusedNames pass
Diffstat (limited to 'test')
-rw-r--r-- | test/passes/remove-unused-names.txt | 16 | ||||
-rw-r--r-- | test/passes/remove-unused-names.wast | 9 |
2 files changed, 25 insertions, 0 deletions
diff --git a/test/passes/remove-unused-names.txt b/test/passes/remove-unused-names.txt new file mode 100644 index 000000000..eef6527e7 --- /dev/null +++ b/test/passes/remove-unused-names.txt @@ -0,0 +1,16 @@ +(module + (memory 16777216 16777216) + (func $b0 (param $i1 i32) (result i32) + (block $topmost + (i32.const 0) + ) + ) +) +(module + (memory 16777216 16777216) + (func $b0 (param $i1 i32) (result i32) + (block + (i32.const 0) + ) + ) +) diff --git a/test/passes/remove-unused-names.wast b/test/passes/remove-unused-names.wast new file mode 100644 index 000000000..ae6b2d31b --- /dev/null +++ b/test/passes/remove-unused-names.wast @@ -0,0 +1,9 @@ +(module + (memory 16777216 16777216) + (func $b0 (param $i1 i32) (result i32) + (block $topmost + (i32.const 0) + ) + ) +) + |