1;;! threads = true
2
3;; From https://github.com/bytecodealliance/wasmtime/pull/5255
4;;
5
6(module
7  (memory 1 1)
8  (func (export "notify") (result i32) (memory.atomic.notify (i32.const 0) (i32.const -1)))
9)
10
11;; notify returns 0 on unshared memories
12(assert_return (invoke "notify") (i32.const 0))
13
14(module
15  (memory 1 1 shared)
16  (func (export "notify_shared") (result i32) (memory.atomic.notify (i32.const 0) (i32.const -1)))
17)
18
19;; notify returns 0 with 0 waiters
20(assert_return (invoke "notify_shared") (i32.const 0))
21