summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/passes/asyncify.wast2
-rw-r--r--test/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.wast2
-rw-r--r--test/passes/asyncify_pass-arg=asyncify-ignore-imports.wast2
-rw-r--r--test/passes/asyncify_pass-arg=asyncify-ignore-indirect.wast2
-rw-r--r--test/spec/elem.wast4
-rw-r--r--test/spec/imports.wast4
-rw-r--r--test/spec/old_import.wast4
7 files changed, 10 insertions, 10 deletions
diff --git a/test/passes/asyncify.wast b/test/passes/asyncify.wast
index 281934aea..e919a7e86 100644
--- a/test/passes/asyncify.wast
+++ b/test/passes/asyncify.wast
@@ -3,7 +3,7 @@
(memory 1 2)
(import "env" "import" (func $import))
(import "env" "import2" (func $import2 (param i32)))
- (table 1 1)
+ (table funcref (elem $liveness2 $liveness2))
(func $liveness1 (param $live0 i32) (param $dead0 i32)
(local $live1 i32)
(local $dead1 i32)
diff --git a/test/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.wast b/test/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.wast
index 7d67c89ed..4233cb304 100644
--- a/test/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.wast
+++ b/test/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.wast
@@ -4,7 +4,7 @@
(import "env" "import" (func $import))
(import "env" "import2" (func $import2 (result i32)))
(import "env" "import3" (func $import3 (param i32)))
- (table 1 1)
+ (table funcref (elem $calls-import2-drop $calls-import2-drop))
(func $calls-import
(call $import)
)
diff --git a/test/passes/asyncify_pass-arg=asyncify-ignore-imports.wast b/test/passes/asyncify_pass-arg=asyncify-ignore-imports.wast
index 33500baba..80f0851d0 100644
--- a/test/passes/asyncify_pass-arg=asyncify-ignore-imports.wast
+++ b/test/passes/asyncify_pass-arg=asyncify-ignore-imports.wast
@@ -4,7 +4,7 @@
(import "env" "import" (func $import))
(import "env" "import2" (func $import2 (result i32)))
(import "env" "import3" (func $import3 (param i32)))
- (table 1 1)
+ (table funcref (elem $calls-import2-drop $calls-import2-drop))
(func $calls-import
(call $import)
)
diff --git a/test/passes/asyncify_pass-arg=asyncify-ignore-indirect.wast b/test/passes/asyncify_pass-arg=asyncify-ignore-indirect.wast
index 33500baba..80f0851d0 100644
--- a/test/passes/asyncify_pass-arg=asyncify-ignore-indirect.wast
+++ b/test/passes/asyncify_pass-arg=asyncify-ignore-indirect.wast
@@ -4,7 +4,7 @@
(import "env" "import" (func $import))
(import "env" "import2" (func $import2 (result i32)))
(import "env" "import3" (func $import3 (param i32)))
- (table 1 1)
+ (table funcref (elem $calls-import2-drop $calls-import2-drop))
(func $calls-import
(call $import)
)
diff --git a/test/spec/elem.wast b/test/spec/elem.wast
index 1ea2b0618..fff4a83ef 100644
--- a/test/spec/elem.wast
+++ b/test/spec/elem.wast
@@ -8,10 +8,10 @@
(elem (i32.const 0) $f $f)
(elem (offset (i32.const 0)))
(elem (offset (i32.const 0)) $f $f)
- (elem 0 (i32.const 0))
+ (elem (i32.const 0))
(elem 0x0 (i32.const 0) $f $f)
(elem 0x000 (offset (i32.const 0)))
- (elem 0 (offset (i32.const 0)) $f $f)
+ (elem (offset (i32.const 0)) $f $f)
(elem $t (i32.const 0))
(elem $t (i32.const 0) $f $f)
(elem $t (offset (i32.const 0)))
diff --git a/test/spec/imports.wast b/test/spec/imports.wast
index 04c1746c7..c39ae8dd3 100644
--- a/test/spec/imports.wast
+++ b/test/spec/imports.wast
@@ -271,7 +271,7 @@
(module
(type (func (result i32)))
(import "spectest" "table" (table 10 20 funcref))
- (elem 0 (i32.const 1) $f $g)
+ (elem (i32.const 1) $f $g)
(func (export "call") (param i32) (result i32)
(call_indirect (type 0) (local.get 0))
@@ -290,7 +290,7 @@
(module
(type (func (result i32)))
(table (import "spectest" "table") 10 20 funcref)
- (elem 0 (i32.const 1) $f $g)
+ (elem (i32.const 1) $f $g)
(func (export "call") (param i32) (result i32)
(call_indirect (type 0) (local.get 0))
diff --git a/test/spec/old_import.wast b/test/spec/old_import.wast
index bc6144185..a26c16e48 100644
--- a/test/spec/old_import.wast
+++ b/test/spec/old_import.wast
@@ -96,7 +96,7 @@
(module
(type (func (result i32)))
(import "spectest" "table" (table 10 20 funcref))
- (elem 0 (i32.const 1) $f $g)
+ (elem (i32.const 1) $f $g)
(func (export "call") (param i32) (result i32) (call_indirect (type 0) (local.get 0)))
(func $f (result i32) (i32.const 11))
@@ -113,7 +113,7 @@
(module
(type (func (result i32)))
(table (import "spectest" "table") 10 20 funcref)
- (elem 0 (i32.const 1) $f $g)
+ (elem (i32.const 1) $f $g)
(func (export "call") (param i32) (result i32) (call_indirect (type 0) (local.get 0)))
(func $f (result i32) (i32.const 11))