summaryrefslogtreecommitdiff
path: root/test/passes/duplicate-function-elimination_optimize-level=2.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/passes/duplicate-function-elimination_optimize-level=2.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/passes/duplicate-function-elimination_optimize-level=2.wast')
-rw-r--r--test/passes/duplicate-function-elimination_optimize-level=2.wast8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/passes/duplicate-function-elimination_optimize-level=2.wast b/test/passes/duplicate-function-elimination_optimize-level=2.wast
index 1097f6715..c66cfba5d 100644
--- a/test/passes/duplicate-function-elimination_optimize-level=2.wast
+++ b/test/passes/duplicate-function-elimination_optimize-level=2.wast
@@ -435,10 +435,10 @@
)
)
(module
- (memory 0)
- (type $FUNCSIG$v (func))
(import "env" "i" (func $i))
(import "env" "j" (func $j))
+ (memory 0)
+ (type $FUNCSIG$v (func))
(func $erase (type $FUNCSIG$v)
(call $i)
)
@@ -447,10 +447,10 @@
)
)
(module
- (memory 0)
- (type $FUNCSIG$v (func))
(import "env" "i" (func $i))
(import "env" "j" (func $j))
+ (memory 0)
+ (type $FUNCSIG$v (func))
(func $keep2 (type $FUNCSIG$v)
(call $i)
)