tests/cli/atomics.wast
raw| 1 | ;; RUN: wast --assert default --snapshot tests/snapshots % |
| 2 | |
| 3 | (module |
| 4 | (func |
| 5 | atomic.fence) |
| 6 | ) |
| 7 | |
| 8 | (module |
| 9 | (memory 1) |
| 10 | (func (result i32) |
| 11 | i32.const 0 |
| 12 | i32.const 0 |
| 13 | memory.atomic.notify 0 offset=0 |
| 14 | ) |
| 15 | ) |
| 16 | |
| 17 | (assert_invalid |
| 18 | (module |
| 19 | (memory 1) |
| 20 | (func (result i32) |
| 21 | i32.const 0 |
| 22 | i32.const 0 |
| 23 | i64.const 0 |
| 24 | memory.atomic.wait32 1 offset=0 |
| 25 | ) |
| 26 | ) |
| 27 | "unknown memory 1") |