| 1 |
;; RUN: wast --assert default --snapshot tests/snapshots % |
| 2 |
|
| 3 |
(assert_invalid |
| 4 |
(component |
| 5 |
(core module $m (func (export ""))) |
| 6 |
(core instance $i (instantiate $m)) |
| 7 |
(alias core export $i "" (core tag $t)) |
| 8 |
) |
| 9 |
"export `` for core instance 0 is not a tag") |
| 10 |
|
| 11 |
(component |
| 12 |
(core module $m (tag (export ""))) |
| 13 |
(core instance $i (instantiate $m)) |
| 14 |
(alias core export $i "" (core tag $t)) |
| 15 |
) |
| 16 |
|
| 17 |
(component |
| 18 |
(core module $m (tag (export ""))) |
| 19 |
(core instance $i (instantiate $m)) |
| 20 |
(core instance |
| 21 |
(export "" (tag $i "")))) |
| 22 |
|
| 23 |
(assert_invalid |
| 24 |
(component |
| 25 |
(core module $m (func (export ""))) |
| 26 |
(core instance $i (instantiate $m)) |
| 27 |
(core instance |
| 28 |
(export "" (tag 0))) |
| 29 |
) |
| 30 |
"unknown tag 0") |