| 1 |
;; RUN: wast --assert default --snapshot tests/snapshots % |
| 2 |
|
| 3 |
(assert_invalid |
| 4 |
(module |
| 5 |
(type (func (result i32))) |
| 6 |
(func $main (result i32) |
| 7 |
i32.const 0 |
| 8 |
call_indirect (type 0) |
| 9 |
) |
| 10 |
(table (;0;) 1 externref) |
| 11 |
) |
| 12 |
"indirect calls must go through a table with type <= funcref" |
| 13 |
) |