From 1ac8770aee26a221c86a7fe92194a06f5c094070 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 31 Jul 2023 09:53:48 -0700 Subject: Fix binary writing of strings without GC enabled (#5836) --- test/lit/binary/strings-nogc.test | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/lit/binary/strings-nogc.test (limited to 'test/lit/binary') diff --git a/test/lit/binary/strings-nogc.test b/test/lit/binary/strings-nogc.test new file mode 100644 index 000000000..7aa21d750 --- /dev/null +++ b/test/lit/binary/strings-nogc.test @@ -0,0 +1,12 @@ +;; Verify that we support strings in the binary format even without GC. + +;; RUN: wasm-opt --enable-reference-types --enable-strings --roundtrip %s + +(module + (func $0 + (local $0 stringref) + (local.set $0 + (ref.null none) + ) + ) +) -- cgit v1.2.3