| 1 |
;; RUN: wast --assert default --snapshot tests/snapshots % -f mvp |
| 2 |
|
| 3 |
(assert_invalid |
| 4 |
(module quote |
| 5 |
"(global (shared i32) (i32.const 0))" |
| 6 |
) |
| 7 |
"shared globals require the shared-everything-threads proposal") |
| 8 |
|
| 9 |
(assert_invalid |
| 10 |
(module quote |
| 11 |
"(global (import \"spectest\" \"global_i64\") (shared mut i64))" |
| 12 |
) |
| 13 |
"shared globals require the shared-everything-threads proposal") |
| 14 |
|
| 15 |
(assert_invalid |
| 16 |
(module |
| 17 |
(global $a (import "spectest" "global_i32") i32) |
| 18 |
(func (result i32) (global.atomic.get seq_cst $a)) |
| 19 |
) |
| 20 |
"shared-everything-threads support is not enabled") |