summaryrefslogtreecommitdiff
path: root/test/lit/binary/strings-nogc.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/lit/binary/strings-nogc.test')
-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)
+ )
+ )
+)