summaryrefslogtreecommitdiff
path: root/test/lit/basic/shared-null-no-gc.wast
blob: b920f80f8b7bd8de77388e253b1fcbf38a0d0708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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))
  )
 )
)