diff options
Diffstat (limited to 'test/lit/validation/shared-memory.wast')
-rw-r--r-- | test/lit/validation/shared-memory.wast | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/lit/validation/shared-memory.wast b/test/lit/validation/shared-memory.wast new file mode 100644 index 000000000..259e89b81 --- /dev/null +++ b/test/lit/validation/shared-memory.wast @@ -0,0 +1,11 @@ +;; Test that shared memory requires atomics + +;; RUN: not wasm-opt %s 2>&1 | filecheck %s --check-prefix NO-ATOMICS +;; RUN: wasm-opt %s --enable-threads -o - -S | filecheck %s --check-prefix ATOMICS + +;; NO-ATOMICS: memory is shared, but atomics are disabled +;; ATOMICS: (memory $0 (shared 10 20)) + +(module + (memory (shared 10 20)) +) |