blob: 8612bee27f1dc24735370bf73b213000ecbe0d85 (
plain)
1
2
3
4
5
6
7
8
9
|
;; Test that an invalid supertype results in a useful error message
;; RUN: not wasm-opt %s -all 2>&1 | filecheck %s
;; CHECK: Fatal: 8:2: error: invalid type: Heap type has an invalid supertype
(module
(type $super (sub (struct i32)))
(type $sub (sub $super (struct i64)))
)
|