summaryrefslogtreecommitdiff
path: root/test/lit/binary
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-07-31 09:53:48 -0700
committerGitHub <noreply@github.com>2023-07-31 16:53:48 +0000
commit1ac8770aee26a221c86a7fe92194a06f5c094070 (patch)
treec164308e8eef69b6e721e492a4443bf1fc3a044b /test/lit/binary
parentb1e23ca6a1b930421279141ed06e94300eddcf17 (diff)
downloadbinaryen-1ac8770aee26a221c86a7fe92194a06f5c094070.tar.gz
binaryen-1ac8770aee26a221c86a7fe92194a06f5c094070.tar.bz2
binaryen-1ac8770aee26a221c86a7fe92194a06f5c094070.zip
Fix binary writing of strings without GC enabled (#5836)
Diffstat (limited to 'test/lit/binary')
-rw-r--r--test/lit/binary/strings-nogc.test12
1 files changed, 12 insertions, 0 deletions
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)
+ )
+ )
+)