blob: ca6c000fd488b07d167cf82a59448f5d00eb5813 (
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 externref))
(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")
|