| 1 |
;; RUN: wast % --assert default --snapshot tests/snapshots |
| 2 |
|
| 3 |
(assert_invalid |
| 4 |
(component |
| 5 |
(core module $m |
| 6 |
(memory (export "memory") 1) |
| 7 |
(func (export "ret-list") (result i32) unreachable) |
| 8 |
) |
| 9 |
(core instance $i (instantiate $m)) |
| 10 |
|
| 11 |
(func (export "ret-list") (result (list u32 4)) |
| 12 |
(canon lift (core func $i "ret-list") (memory $i "memory")) |
| 13 |
) |
| 14 |
) |
| 15 |
"Fixed size lists require the component model fixed size list feature (at offset 0x54)" |
| 16 |
) |
| 17 |
|
| 18 |
(assert_invalid |
| 19 |
(component |
| 20 |
(core module $m |
| 21 |
(func (export "param-list") (param i32 i32 i32 i32) unreachable) |
| 22 |
) |
| 23 |
(core instance $i (instantiate $m)) |
| 24 |
|
| 25 |
(func (export "param-list") (param "l" (list u32 4)) |
| 26 |
(canon lift (core func $i "param-list")) |
| 27 |
) |
| 28 |
) |
| 29 |
"Fixed size lists require the component model fixed size list feature" |
| 30 |
) |