1  .globl  bar
2bar:
3  .functype bar () -> (i64)
4  i64.const 1
5  end_function
6
7  .globl  call_bar_indirect
8call_bar_indirect:
9  .functype call_bar_indirect () -> ()
10  i32.const 0
11  i32.load  indirect_bar
12  call_indirect () -> (i64)
13  drop
14  i32.const 0
15  i32.load  indirect_foo
16  call_indirect () -> (i32)
17  drop
18  end_function
19
20  .section  .data.indirect_bar,"",@
21indirect_bar:
22  .int32  bar
23  .size indirect_bar, 4
24
25  .section  .data.indirect_foo,"",@
26indirect_foo:
27  .int32  foo
28  .size indirect_foo, 4
29
30  .functype foo () -> (i32)
31