| 1 |
;; RUN: wast --assert default --snapshot tests/snapshots % -f shared-everything-threads |
| 2 |
|
| 3 |
(assert_invalid |
| 4 |
(module |
| 5 |
(rec |
| 6 |
(type (; super ;) (sub (func (result (ref null (shared func)))))) |
| 7 |
(type (; sub ;) (sub 0 (func (result (ref null func))))) |
| 8 |
) |
| 9 |
) |
| 10 |
"sub type must match super type" |
| 11 |
) |
| 12 |
|
| 13 |
(assert_invalid |
| 14 |
(module |
| 15 |
(rec |
| 16 |
(type (; super ;) (sub (func (param (ref null (shared func)))))) |
| 17 |
(type (; sub ;) (sub 0 (func (param (ref null 0))))) |
| 18 |
) |
| 19 |
) |
| 20 |
"sub type must match super type" |
| 21 |
) |