summaryrefslogtreecommitdiff
path: root/test/lit/binary/bad-ref-as.test
blob: 3accdd55394e2cc88eb93c1d7cae741930099437 (plain)
1
2
3
4
5
;; Test that we error properly on a file with a ref.as of a non-ref type.

;; RUN: not wasm-opt -all %s.wasm 2>&1 | filecheck %s

;; CHECK: ref.cast ref must have ref type