summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lit/exec/atomic.wast21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/lit/exec/atomic.wast b/test/lit/exec/atomic.wast
new file mode 100644
index 000000000..73567121f
--- /dev/null
+++ b/test/lit/exec/atomic.wast
@@ -0,0 +1,21 @@
+;; NOTE: Assertions have been generated by update_lit_checks.py --output=fuzz-exec and should not be edited.
+
+;; RUN: wasm-opt %s -all --fuzz-exec-before -q -o /dev/null 2>&1 | filecheck %s
+
+(module
+ (import "fuzzing-support" "log-i32" (func $log (param i32)))
+
+ (memory $0 23 256 shared)
+
+ ;; CHECK: [fuzz-exec] calling wait_and_log
+ ;; CHECK-NEXT: [LoggingExternalInterface logging 0]
+ (func $wait_and_log (export "wait_and_log")
+ (call $log
+ (memory.atomic.wait64
+ (i32.const 0)
+ (i64.const 0)
+ (i64.const 0)
+ )
+ )
+ )
+)