blob: ccb09e3eea72f447e036d9ec038e3f65d52bc8a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
(module
(type $0 (func (param i32 i32) (result i32)))
(table $tab 1 1 funcref)
(table $table2 2 2 funcref)
(elem $0 (table $tab) (i32.const 0) func $adder)
(elem $1 (table $table2) (i32.const 0) func $adder)
(elem $passive func $adder)
(func $adder (param $0 i32) (param $1 i32) (result i32)
(i32.add
(local.get $0)
(local.get $1)
)
)
(func $call_adder_indirect (param $0 i32) (param $1 i32) (result i32)
(call_indirect $t2 (type $0)
(local.get $0)
(local.get $1)
(i32.const 0)
)
)
)
|