diff options
Diffstat (limited to 'test/passes/duplicate-function-elimination.wast')
-rw-r--r-- | test/passes/duplicate-function-elimination.wast | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/test/passes/duplicate-function-elimination.wast b/test/passes/duplicate-function-elimination.wast index f72ef542e..ba429ed30 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) ) @@ -437,12 +438,12 @@ (memory 0) (type $FUNCSIG$v (func)) (import $i "env" "i") - (import $i "env" "j") + (import $j "env" "j") (func $erase (type $FUNCSIG$v) - (call_import $i) + (call $i) ) (func $other (type $FUNCSIG$v) - (call_import $i) + (call $i) ) ) (module @@ -451,16 +452,17 @@ (import $i "env" "i") (import $j "env" "j") (func $keep2 (type $FUNCSIG$v) - (call_import $i) + (call $i) ) (func $other (type $FUNCSIG$v) - (call_import $j) + (call $j) ) ) (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) |