brintos

brintos / llvm-project-archived public Read only

0
0
Text · 969 B · 7f6746d Raw
36 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        call    bar27        end_function28 29        .section        .custom_section.llvm.func_attr.custom0,"",@30        .int32  foo@FUNCINDEX31        .int32  bar@FUNCINDEX32 33# CHECK:       - Type:            CUSTOM34# CHECK-NEXT:    Name:            llvm.func_attr.custom035# CHECK-NEXT:    Payload:         '0000000001000000'36