summaryrefslogtreecommitdiff
path: root/test/passes/duplicate-function-elimination.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/duplicate-function-elimination.txt')
-rw-r--r--test/passes/duplicate-function-elimination.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/passes/duplicate-function-elimination.txt b/test/passes/duplicate-function-elimination.txt
index 3671ce24b..a7511fc5c 100644
--- a/test/passes/duplicate-function-elimination.txt
+++ b/test/passes/duplicate-function-elimination.txt
@@ -38,7 +38,8 @@
(type $0 (func))
(export "keep2" $keep2)
(export "other" $keep2)
- (table $keep2 $keep2 $caller)
+ (table 3 3 anyfunc)
+ (elem (i32.const 0) $keep2 $keep2 $caller)
(func $keep2 (type $0)
(nop)
)
@@ -363,7 +364,8 @@
(module
(memory 0)
(type $T (func))
- (table $erase $erase)
+ (table 2 2 anyfunc)
+ (elem (i32.const 0) $erase $erase)
(func $erase (type $T)
(call_indirect $T
(i32.const 0)
@@ -373,7 +375,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)
@@ -389,7 +392,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)