1 ; RUN: llc -filetype=obj %s -o %t1.o
2 ; RUN: llc -filetype=obj %S/Inputs/custom.ll -o %t2.o
3 ; RUN: wasm-ld --relocatable -o %t.wasm %t1.o %t2.o
4 ; RUN: obj2yaml %t.wasm | FileCheck %s
6 target triple = "wasm32-unknown-unknown"
8 define i32 @_start() local_unnamed_addr {
10 %retval = alloca i32, align 4
14 !0 = !{ !"red", !"extra" }
15 !wasm.custom_sections = !{ !0 }
17 ; CHECK: - Type: CUSTOM
18 ; CHECK-NEXT: Name: green
19 ; CHECK-NEXT: Payload: '626172717578'
20 ; CHECK-NEXT: - Type: CUSTOM
21 ; CHECK-NEXT: Name: red
22 ; CHECK-NEXT: Payload: 6578747261666F6F