| 1 |
;; RUN: wast --assert default --snapshot tests/snapshots % -f shared-everything-threads |
| 2 |
|
| 3 |
(component |
| 4 |
(core module $A |
| 5 |
(memory (export "m") 1 2 shared)) |
| 6 |
(core instance $A (instantiate $A)) |
| 7 |
(alias core export $A "m" (core memory $m)) |
| 8 |
|
| 9 |
(core module $B (import "" "" (memory 1 2 shared))) |
| 10 |
(core instance (instantiate $B (with "" (instance (export "" (memory $m)))))) |
| 11 |
) |
| 12 |
|
| 13 |
(component |
| 14 |
(core module $A |
| 15 |
(table (export "m") shared 1 2 (ref null (shared func))) |
| 16 |
) |
| 17 |
(core instance $A (instantiate $A)) |
| 18 |
(alias core export $A "m" (core table $m)) |
| 19 |
|
| 20 |
(core module $B (import "" "" (table shared 1 2 (ref null (shared func))))) |
| 21 |
(core instance (instantiate $B (with "" (instance (export "" (table $m)))))) |
| 22 |
) |
| 23 |
|
| 24 |
(assert_invalid |
| 25 |
(component |
| 26 |
(import "x" (func $x (param "x" string))) |
| 27 |
|
| 28 |
(core module $A |
| 29 |
(memory (export "m") 1 2 shared)) |
| 30 |
(core instance $A (instantiate $A)) |
| 31 |
(alias core export $A "m" (core memory $m)) |
| 32 |
(core func (canon lower (func $x) (memory $m))) |
| 33 |
) |
| 34 |
"canonical ABI memory is not a 32-bit linear memory") |