1 # RUN: split-file %s %t
2 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %t/a.s -o %t1.o
3 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %t/b.s -o %t2.o
4 # RUN: wasm-ld -o %t.wasm %t1.o %t2.o
5 # RUN: obj2yaml %t.wasm | FileCheck %s
7 # Ensure two custom funct_attr sections are concatenated together.
9 # CHECK: - Type: CUSTOM
10 # CHECK-NEXT: Name: llvm.func_attr.custom0
11 # CHECK-NEXT: Payload: '000000000100000003000000'
15 # Function index 3 (after linking)
16 .functype baz () -> ()
18 .functype foo () -> ()
20 .functype bar () -> ()
21 .functype _start () -> ()
25 .functype foo () -> ()
31 .functype bar () -> ()
35 .type _start,@function
37 .functype _start () -> ()
43 .section .custom_section.llvm.func_attr.custom0,"",@
48 .functype baz () -> ()
52 .functype baz () -> ()
55 .section .custom_section.llvm.func_attr.custom0,"",@