| 1 |
;; RUN: wast --assert default --snapshot tests/snapshots % |
| 2 |
|
| 3 |
(assert_invalid |
| 4 |
(component |
| 5 |
(core type (module |
| 6 |
(import "" "" (func (type 1))) |
| 7 |
)) |
| 8 |
(type (func)) |
| 9 |
) |
| 10 |
"type index out of bounds") |
| 11 |
|
| 12 |
(assert_malformed |
| 13 |
(component quote |
| 14 |
"(export \"\" (func $foo))" |
| 15 |
) |
| 16 |
"unknown func") |
| 17 |
|
| 18 |
(assert_malformed |
| 19 |
(component quote |
| 20 |
"(alias outer 100 $foo (type $foo))" |
| 21 |
) |
| 22 |
"outer count of `100` is too large") |
| 23 |
|
| 24 |
(assert_malformed |
| 25 |
(component quote |
| 26 |
"(alias outer $nonexistent $foo (type $foo))" |
| 27 |
) |
| 28 |
"outer component `nonexistent` not found") |
| 29 |
|
| 30 |
(assert_malformed |
| 31 |
(component quote |
| 32 |
"(import \"x\" (func $x))" |
| 33 |
"(component (export \"x\" (func $x)))") |
| 34 |
"outer item `x` is not a module, type, or component") |