From 1daa10fb356cb01d80eaa3fd13c8c1d9a53ea343 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 7 Jun 2023 13:29:01 -0700 Subject: [Strings] Fix non-nullable string emitting in the binary format (#5756) Related to #5737 which did something similar for other types. --- test/lit/downgrade-reftypes.wast | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test') diff --git a/test/lit/downgrade-reftypes.wast b/test/lit/downgrade-reftypes.wast index 94343933f..5bc9af653 100644 --- a/test/lit/downgrade-reftypes.wast +++ b/test/lit/downgrade-reftypes.wast @@ -33,6 +33,13 @@ ;; CHECK-NEXT: ) ;; CHECK-NEXT: ) ;; CHECK-NEXT: ) + ;; CHECK-NEXT: (drop + ;; CHECK-NEXT: (block $label$4 (result stringref) + ;; CHECK-NEXT: (br $label$4 + ;; CHECK-NEXT: (string.const "hello world") + ;; CHECK-NEXT: ) + ;; CHECK-NEXT: ) + ;; CHECK-NEXT: ) ;; CHECK-NEXT: ) (func $foo (type $f) (drop @@ -57,5 +64,12 @@ ) ) ) + (drop + (block $l4 (result (ref string)) + (br $l4 + (string.const "hello world") + ) + ) + ) ) ) -- cgit v1.2.3