summaryrefslogtreecommitdiff
path: root/test/lit/exec/no-compare-refs.wast
blob: bb9766a31229d49d362f408a9c360fbee4f036a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
;; NOTE: Assertions have been generated by update_lit_checks.py --output=fuzz-exec and should not be edited.

;; RUN: wasm-opt %s --hybrid -all --signature-pruning --fuzz-exec -q -o /dev/null 2>&1 | filecheck %s

(module
  (type $f (func (param i32)))

  (func $no-use-param (type $f) (param i32)
    (unreachable)
  )

  ;; The type of the reference this function returns will change as a result of
  ;; signature pruning. The fuzzer should not complain about this.
  ;; CHECK:      [fuzz-exec] calling return-ref
  ;; CHECK-NEXT: [fuzz-exec] note result: return-ref => funcref
  (func "return-ref" (result funcref)
    (ref.func $no-use-param)
  )
)
;; CHECK:      [fuzz-exec] calling return-ref
;; CHECK-NEXT: [fuzz-exec] note result: return-ref => funcref
;; CHECK-NEXT: [fuzz-exec] comparing return-ref