35 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s2# RUN: wasm-ld %t.o -o %t.wasm3# RUN: obj2yaml %t.wasm | FileCheck %s4 5 .functype foo () -> ()6 .functype bar () -> ()7 .functype _start () -> ()8 .globl foo9 .type foo,@function10foo:11 .functype foo () -> ()12 end_function13 14 .section .text.bar,"",@15 .globl bar16 .type bar,@function17bar:18 .functype bar () -> ()19 end_function20 21 .globl _start22 .type _start,@function23_start:24 .functype _start () -> ()25 call foo26 end_function27 28 .section .custom_section.llvm.func_attr.custom0,"",@29 .int32 foo@FUNCINDEX30 .int32 bar@FUNCINDEX31 32# CHECK: - Type: CUSTOM33# CHECK-NEXT: Name: llvm.func_attr.custom034# CHECK-NEXT: Payload: 00000000FFFFFFFF35