diff options
Diffstat (limited to 'test/lit/exec/array.wast')
-rw-r--r-- | test/lit/exec/array.wast | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/lit/exec/array.wast b/test/lit/exec/array.wast new file mode 100644 index 000000000..7e74c7b7d --- /dev/null +++ b/test/lit/exec/array.wast @@ -0,0 +1,20 @@ +;; 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 -q -o /dev/null 2>&1 | filecheck %s + +(module + (type $array (array (mut i8))) + + ;; CHECK: [fuzz-exec] calling func + ;; CHECK-NEXT: [fuzz-exec] note result: func => 1 + (func "func" (result i32) + ;; Verifies the order of execution is correct - we should return 1, not 2. + (array.new $array + (return (i32.const 1)) + (return (i32.const 2)) + ) + ) +) +;; CHECK: [fuzz-exec] calling func +;; CHECK-NEXT: [fuzz-exec] note result: func => 1 +;; CHECK-NEXT: [fuzz-exec] comparing func |