summaryrefslogtreecommitdiff
path: root/test/spec/call_indirect_sig_mismatch.wast
blob: 69cca17bab54a92896ba3786e5cbf458d6de6aeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(module
  (type $funcref_=>_none (func (param funcref)))
  (table funcref (elem $callee))
  (export "sig_mismatch" (func $sig_mismatch))
  (func $callee (param $0 exnref))
  (func $sig_mismatch
    (call_indirect (type $funcref_=>_none)
      (ref.null func)
      (i32.const 0)
    )
  )
)

(assert_trap (invoke "sig_mismatch") "callIndirect: function signatures don't match")