diff options
Diffstat (limited to 'test/lit/basic/shared-null-no-gc.wast')
-rw-r--r-- | test/lit/basic/shared-null-no-gc.wast | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/lit/basic/shared-null-no-gc.wast b/test/lit/basic/shared-null-no-gc.wast new file mode 100644 index 000000000..b920f80f8 --- /dev/null +++ b/test/lit/basic/shared-null-no-gc.wast @@ -0,0 +1,19 @@ +;; NOTE: Assertions have been generated by update_lit_checks.py and should not be edited. + +;; Test that we can write a binary without crashing when using a shared bottom +;; type without GC enabled. + +;; RUN: wasm-opt %s --enable-reference-types --enable-shared-everything --roundtrip -S -o - | filecheck %s + +(module + ;; CHECK: (func $test + ;; CHECK-NEXT: (drop + ;; CHECK-NEXT: (ref.null (shared nofunc)) + ;; CHECK-NEXT: ) + ;; CHECK-NEXT: ) + (func $test + (drop + (ref.null (shared func)) + ) + ) +) |