summaryrefslogtreecommitdiff
path: root/test/lit/validation/non-ref.wast
blob: a065b6723e419663de0c17435edefe88c3eede8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
;; RUN: not wasm-opt %s -all 2>&1 | filecheck %s

;; CHECK: ref.as value must be reference

(module
  (func $test
    (drop
      (ref.as_non_null
        (i32.const 42)
      )
    )
  )
)