summaryrefslogtreecommitdiff
path: root/test/multi-table.wast.fromBinary
diff options
context:
space:
mode:
Diffstat (limited to 'test/multi-table.wast.fromBinary')
-rw-r--r--test/multi-table.wast.fromBinary9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/multi-table.wast.fromBinary b/test/multi-table.wast.fromBinary
index 9918b6183..db652b8db 100644
--- a/test/multi-table.wast.fromBinary
+++ b/test/multi-table.wast.fromBinary
@@ -2,13 +2,18 @@
(type $none_=>_none (func))
(import "a" "b" (table $t1 1 10 funcref))
(elem (table $t1) (i32.const 0) func $f)
+ (global $g1 (ref null $none_=>_none) (ref.func $f))
+ (global $g2 i32 (i32.const 0))
(table $t2 3 3 funcref)
(elem (table $t2) (i32.const 0) func $f)
(elem $activeNonZeroOffset (table $t2) (i32.const 1) func $f $g)
(table $t3 4 4 funcref)
- (elem $e3-1 (table $t3) (i32.const 0) funcref (ref.func $f) (ref.null func))
+ (elem $e3-1 (table $t3) (global.get $g2) funcref (ref.func $f) (ref.null func))
(elem $e3-2 (table $t3) (i32.const 2) func $f $g)
- (elem $passive funcref (ref.func $f) (ref.func $g) (ref.null func))
+ (table $textern 0 externref)
+ (elem $passive-1 func $f $g)
+ (elem $passive-2 funcref (ref.func $f) (ref.func $g) (ref.null func))
+ (elem $passive-3 (ref null $none_=>_none) (ref.func $f) (ref.func $g) (ref.null $none_=>_none) (global.get $g1))
(elem declare func $h)
(func $f
(drop