31 lines · plain
1 .globl bar2bar:3 .functype bar () -> (i64)4 i64.const 15 end_function6 7 .globl call_bar_indirect8call_bar_indirect:9 .functype call_bar_indirect () -> ()10 i32.const 011 i32.load indirect_bar12 call_indirect () -> (i64)13 drop14 i32.const 015 i32.load indirect_foo16 call_indirect () -> (i32)17 drop18 end_function19 20 .section .data.indirect_bar,"",@21indirect_bar:22 .int32 bar23 .size indirect_bar, 424 25 .section .data.indirect_foo,"",@26indirect_foo:27 .int32 foo28 .size indirect_foo, 429 30 .functype foo () -> (i32)31