summaryrefslogtreecommitdiff
path: root/test/passes/duplicate-function-elimination.wast
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-09-17 15:31:27 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-09-17 17:04:22 -0700
commit456e3e8625064370281629c71d9c29d8f7d09d06 (patch)
treee2f4521616e60d6f0bf16b031a1b05627dbffa25 /test/passes/duplicate-function-elimination.wast
parent0201f77b30f875de0d0fc8e407ffc985d47f8535 (diff)
downloadbinaryen-456e3e8625064370281629c71d9c29d8f7d09d06.tar.gz
binaryen-456e3e8625064370281629c71d9c29d8f7d09d06.tar.bz2
binaryen-456e3e8625064370281629c71d9c29d8f7d09d06.zip
parsing and validation fixes
Diffstat (limited to 'test/passes/duplicate-function-elimination.wast')
-rw-r--r--test/passes/duplicate-function-elimination.wast12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/passes/duplicate-function-elimination.wast b/test/passes/duplicate-function-elimination.wast
index 959737f40..fcd2378e1 100644
--- a/test/passes/duplicate-function-elimination.wast
+++ b/test/passes/duplicate-function-elimination.wast
@@ -54,7 +54,8 @@
(type $0 (func))
(export "keep2" $keep2)
(export "other" $other)
- (table $keep2 $other $caller)
+ (table 3 3 anyfunc)
+ (elem (i32.const 0) $keep2 $other $caller)
(func $keep2 (type $0)
(nop)
)
@@ -460,7 +461,8 @@
(module
(memory 0)
(type $T (func))
- (table $erase $other)
+ (table 2 2 anyfunc)
+ (elem (i32.const 0) $erase $other)
(func $erase (type $T)
(call_indirect $T
(i32.const 0)
@@ -475,7 +477,8 @@
(module
(memory 0)
(type $T (func))
- (table $keep2 $other)
+ (table 2 2 anyfunc)
+ (elem (i32.const 0) $keep2 $other)
(func $keep2 (type $T)
(call_indirect $T
(i32.const 0)
@@ -491,7 +494,8 @@
(memory 0)
(type $T (func))
(type $S (func))
- (table $keep2 $other)
+ (table 2 2 anyfunc)
+ (elem (i32.const 0) $keep2 $other)
(func $keep2 (type $T)
(call_indirect $T
(i32.const 0)