summaryrefslogtreecommitdiff
path: root/test/lit/validation
diff options
context:
space:
mode:
Diffstat (limited to 'test/lit/validation')
-rw-r--r--test/lit/validation/shared-absheaptype.wast2
-rw-r--r--test/lit/validation/shared-null.wast12
2 files changed, 13 insertions, 1 deletions
diff --git a/test/lit/validation/shared-absheaptype.wast b/test/lit/validation/shared-absheaptype.wast
index 6ab3c0219..4426f31b3 100644
--- a/test/lit/validation/shared-absheaptype.wast
+++ b/test/lit/validation/shared-absheaptype.wast
@@ -1,4 +1,4 @@
-;; Test that shared structs require shared-everything threads
+;; Test that shared basic heap types require shared-everything threads
;; RUN: not wasm-opt %s 2>&1 | filecheck %s --check-prefix NO-SHARED
;; RUN: wasm-opt %s --enable-reference-types --enable-gc --enable-shared-everything -o - -S | filecheck %s --check-prefix SHARED
diff --git a/test/lit/validation/shared-null.wast b/test/lit/validation/shared-null.wast
new file mode 100644
index 000000000..1c34873bb
--- /dev/null
+++ b/test/lit/validation/shared-null.wast
@@ -0,0 +1,12 @@
+;; Test that shared nulls require shared-everything threads
+
+;; RUN: not wasm-opt %s 2>&1 | filecheck %s --check-prefix NO-SHARED
+;; RUN: wasm-opt %s --enable-reference-types --enable-gc --enable-shared-everything -o - -S | filecheck %s --check-prefix SHARED
+
+;; NO-SHARED: ref.null requires additional features
+;; NO-SHARED: [--enable-reference-types --enable-shared-everything]
+;; SHARED: (ref.null (shared none))
+
+(module
+ (func (drop (ref.null (shared none))))
+)