summaryrefslogtreecommitdiff
path: root/test/parse/expr
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2021-10-13 09:52:25 -0700
committerGitHub <noreply@github.com>2021-10-13 16:52:25 +0000
commit30c1e983d30b33a8004b39fd60cbd64477a7956c (patch)
treecb17fc468d4fab92f961d49c54798051eea8c617 /test/parse/expr
parent081f6c21ef0998c21f7b33bc82cfa50d5a4ddfd2 (diff)
downloadwabt-30c1e983d30b33a8004b39fd60cbd64477a7956c.tar.gz
wabt-30c1e983d30b33a8004b39fd60cbd64477a7956c.tar.bz2
wabt-30c1e983d30b33a8004b39fd60cbd64477a7956c.zip
Enable reference types by default (#1729)
This features was finished earlier this year: https://github.com/WebAssembly/proposals/blob/master/finished-proposals.md One thing to note is that the version of the spec tests we currently have in third_party/testsuite doesn't have ref types merged yet so this change disables ref types when running some of those tests. This can be removed in a followup when we update the testsuite.
Diffstat (limited to 'test/parse/expr')
-rw-r--r--test/parse/expr/bad-select-multi.txt5
-rw-r--r--test/parse/expr/bulk-memory-disabled.txt2
-rw-r--r--test/parse/expr/reference-types-call-indirect.txt1
-rw-r--r--test/parse/expr/reference-types-named.txt1
-rw-r--r--test/parse/expr/reference-types.txt1
-rw-r--r--test/parse/expr/table-get.txt1
-rw-r--r--test/parse/expr/table-grow.txt1
-rw-r--r--test/parse/expr/table-set.txt1
8 files changed, 3 insertions, 10 deletions
diff --git a/test/parse/expr/bad-select-multi.txt b/test/parse/expr/bad-select-multi.txt
index e9e0b34d..9b737a15 100644
--- a/test/parse/expr/bad-select-multi.txt
+++ b/test/parse/expr/bad-select-multi.txt
@@ -1,5 +1,4 @@
;;; TOOL: wat2wasm
-;;; ARGS*: --enable-reference-types
;;; ERROR: 1
(module
(func
@@ -12,10 +11,10 @@
unreachable
))
(;; STDERR ;;;
-out/test/parse/expr/bad-select-multi.txt:11:5: error: invalid arity in select instruction: 2.
+out/test/parse/expr/bad-select-multi.txt:10:5: error: invalid arity in select instruction: 2.
select (result i32 i32)
^^^^^^
-out/test/parse/expr/bad-select-multi.txt:11:5: error: type mismatch in function, expected [] but got [... i32, i32, i32, i32]
+out/test/parse/expr/bad-select-multi.txt:10:5: error: type mismatch in function, expected [] but got [... i32, i32, i32, i32]
select (result i32 i32)
^^^^^^
;;; STDERR ;;)
diff --git a/test/parse/expr/bulk-memory-disabled.txt b/test/parse/expr/bulk-memory-disabled.txt
index 6f5cd10b..efbbbe74 100644
--- a/test/parse/expr/bulk-memory-disabled.txt
+++ b/test/parse/expr/bulk-memory-disabled.txt
@@ -1,5 +1,5 @@
;;; TOOL: wat2wasm
-;;; ARGS*: --disable-bulk-memory
+;;; ARGS*: --disable-reference-types --disable-bulk-memory
;;; ERROR: 1
(module
diff --git a/test/parse/expr/reference-types-call-indirect.txt b/test/parse/expr/reference-types-call-indirect.txt
index 42363266..93b3460e 100644
--- a/test/parse/expr/reference-types-call-indirect.txt
+++ b/test/parse/expr/reference-types-call-indirect.txt
@@ -1,5 +1,4 @@
;;; TOOL: wat2wasm
-;;; ARGS: --enable-reference-types
(module
(table $foo 1 anyfunc)
diff --git a/test/parse/expr/reference-types-named.txt b/test/parse/expr/reference-types-named.txt
index 5a2d5d1b..ed11a6f7 100644
--- a/test/parse/expr/reference-types-named.txt
+++ b/test/parse/expr/reference-types-named.txt
@@ -1,5 +1,4 @@
;;; TOOL: wat2wasm
-;;; ARGS: --enable-reference-types
(module
(table $foo 1 externref)
diff --git a/test/parse/expr/reference-types.txt b/test/parse/expr/reference-types.txt
index b452df42..b5a8790a 100644
--- a/test/parse/expr/reference-types.txt
+++ b/test/parse/expr/reference-types.txt
@@ -1,5 +1,4 @@
;;; TOOL: wat2wasm
-;;; ARGS: --enable-reference-types
(module
(table $foo 1 externref)
diff --git a/test/parse/expr/table-get.txt b/test/parse/expr/table-get.txt
index a1d3074a..f2895a65 100644
--- a/test/parse/expr/table-get.txt
+++ b/test/parse/expr/table-get.txt
@@ -1,5 +1,4 @@
;;; TOOL: wat2wasm
-;;; ARGS: --enable-reference-types
(module
(func (result externref)
i32.const 0
diff --git a/test/parse/expr/table-grow.txt b/test/parse/expr/table-grow.txt
index f40e9092..4b8e40fc 100644
--- a/test/parse/expr/table-grow.txt
+++ b/test/parse/expr/table-grow.txt
@@ -1,5 +1,4 @@
;;; TOOL: wat2wasm
-;;; ARGS: --enable-reference-types
(module
(func (result i32)
ref.null extern
diff --git a/test/parse/expr/table-set.txt b/test/parse/expr/table-set.txt
index 16f8b917..21cdc7d9 100644
--- a/test/parse/expr/table-set.txt
+++ b/test/parse/expr/table-set.txt
@@ -1,5 +1,4 @@
;;; TOOL: wat2wasm
-;;; ARGS: --enable-reference-types
(module
(func (param externref)
i32.const 0