summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-04-07 11:13:41 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-04-07 11:21:37 -0700
commit2bf63aadfbf30494455ac31c2fe90bdbc6774d71 (patch)
treec659e45a7d32ae4b6900d0f1b1445749d79626b8 /test
parent5d7631a655926f57f824c31505694adac1f44c39 (diff)
downloadbinaryen-2bf63aadfbf30494455ac31c2fe90bdbc6774d71.tar.gz
binaryen-2bf63aadfbf30494455ac31c2fe90bdbc6774d71.tar.bz2
binaryen-2bf63aadfbf30494455ac31c2fe90bdbc6774d71.zip
add vacuum pass
Diffstat (limited to 'test')
-rw-r--r--test/passes/vacuum.txt8
-rw-r--r--test/passes/vacuum.wast12
2 files changed, 20 insertions, 0 deletions
diff --git a/test/passes/vacuum.txt b/test/passes/vacuum.txt
new file mode 100644
index 000000000..bb76b2d82
--- /dev/null
+++ b/test/passes/vacuum.txt
@@ -0,0 +1,8 @@
+(module
+ (memory 256 256)
+ (func $b
+ (i32.const 50)
+ (i32.const 51)
+ (i32.const 52)
+ )
+)
diff --git a/test/passes/vacuum.wast b/test/passes/vacuum.wast
new file mode 100644
index 000000000..24dc32bcb
--- /dev/null
+++ b/test/passes/vacuum.wast
@@ -0,0 +1,12 @@
+(module
+ (memory 256 256)
+ (func $b
+ (i32.const 50)
+ (nop)
+ (i32.const 51)
+ (nop)
+ (nop)
+ (i32.const 52)
+ )
+)
+