blob: f1b4f597883e4e45d23f766a0fcc5f854ef6ba94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
(module
(table $t 1 1 funcref)
(elem (table $t) (i32.const 0) funcref (ref.null func))
(func $call-refnull (export "call-refnull") (result f32)
(call_indirect (result f32) (i32.const 0))
)
)
(assert_trap
(invoke "call-refnull")
"uninitialized table element"
)
|