summaryrefslogtreecommitdiff
path: root/test/lit/validation/extended-const.wast
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2024-02-07 15:04:51 -0800
committerGitHub <noreply@github.com>2024-02-07 15:04:51 -0800
commitd4c3fddd3de605983398756d3b46e2f14e55aba2 (patch)
treed64c2d8ee79a5d204345f3ca1588ccbd4239f1cc /test/lit/validation/extended-const.wast
parentf12977dd8aae5a0a42e65a8e448bca1453f018c6 (diff)
downloadbinaryen-d4c3fddd3de605983398756d3b46e2f14e55aba2.tar.gz
binaryen-d4c3fddd3de605983398756d3b46e2f14e55aba2.tar.bz2
binaryen-d4c3fddd3de605983398756d3b46e2f14e55aba2.zip
Get more tests working with the new text parser (#6284)
The new parser enforces the rule that imports must come before declarations (except for type declarations). The old parser does not enforce this rule, so many of our tests did not follow it. Fix them to follow that rule and fix other invalid syntax. Also add missing finalization of Load expressions in wasm-builder.h that was causing a test to fail under the new parser and guard against an error case in wasm-ir-builder.cpp that used to cause a segfault.
Diffstat (limited to 'test/lit/validation/extended-const.wast')
-rw-r--r--test/lit/validation/extended-const.wast4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lit/validation/extended-const.wast b/test/lit/validation/extended-const.wast
index 9317f47b7..6b506671f 100644
--- a/test/lit/validation/extended-const.wast
+++ b/test/lit/validation/extended-const.wast
@@ -17,8 +17,8 @@
;; EXTENDED: ) "hello world")
(module
- (memory 1 1)
(import "env" "global" (global i32))
+ (memory 1 1)
(global i32 (i32.add (global.get 0) (i32.const 42)))
- (data (i32.sub (global.get 0) (i32.const 10)) "hello world")
+ (data (offset (i32.sub (global.get 0) (i32.const 10))) "hello world")
)