summaryrefslogtreecommitdiff
path: root/test/unit/test_features.py
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/unit/test_features.py
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/unit/test_features.py')
-rw-r--r--test/unit/test_features.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/test_features.py b/test/unit/test_features.py
index 2c596a542..4ce426275 100644
--- a/test/unit/test_features.py
+++ b/test/unit/test_features.py
@@ -177,7 +177,7 @@ class FeatureValidationTest(utils.BinaryenTestCase):
(module
(import "env" "test1" (func $test1 (param externref) (result externref)))
(import "env" "test2" (global $test2 externref))
- (export "test1" (func $test1 (param externref) (result externref)))
+ (export "test1" (func $test1))
(export "test2" (global $test2))
(func $externref_test (param $0 externref) (result externref)
(return