From f5d8d30171e53c225fc640e6db8aa42973c8804c Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Thu, 8 Feb 2024 15:27:02 -0800 Subject: Update lit tests to parse with the new parser (#6290) Get as many of the lit tests as possible to parse with the new parser, mostly by moving declared module items to be after imports. Also fix a bug in the new parser's pop validation to allow supertypes of the expected type. The two big issues that still prevent some lit tests from working correctly under the new parser are missing support for symbolic field names and missing support for source map annotations. --- test/lit/merge/fusing.wat.second | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/lit/merge/fusing.wat.second') diff --git a/test/lit/merge/fusing.wat.second b/test/lit/merge/fusing.wat.second index 7ab9cc3f3..4a3c8d14c 100644 --- a/test/lit/merge/fusing.wat.second +++ b/test/lit/merge/fusing.wat.second @@ -6,6 +6,10 @@ ;; Use a different prefix than in first ($main instead of $other). (import "first" "bar" (func $main.bar)) + (import "first" "mem" (memory $other.mem 1)) + + (import "first" "exn" (tag $exn)) + (memory $second.mem 2) (export "mem" (memory $second.mem)) @@ -26,8 +30,6 @@ ) ) - (import "first" "mem" (memory $other.mem 1)) - (func $keepalive2 (export "keepalive2") (result i32) ;; Load from the memory imported from the second module. (i32.load $other.mem @@ -35,6 +37,5 @@ ) ) - (import "first" "exn" (tag $exn)) (func $keepalive3 (export "keepalive3") (throw $exn)) ) -- cgit v1.2.3