1; RUN: llc -filetype=obj %s -o - | obj2yaml | FileCheck %s 2 3target triple = "wasm32-unknown-unknown" 4 5define hidden i32 @foo() section "baz" { 6entry: 7 ret i32 2 8} 9 10define hidden i32 @bar() section "baz" { 11entry: 12 ret i32 1 13} 14 15; CHECK: - Type: CUSTOM 16; CHECK-NEXT: Name: linking 17; CHECK-NEXT: Version: 1 18; CHECK-NEXT: SymbolTable: 19; CHECK-NEXT: - Index: 0 20; CHECK-NEXT: Kind: FUNCTION 21; CHECK-NEXT: Name: foo 22; CHECK-NEXT: Flags: [ VISIBILITY_HIDDEN ] 23; CHECK-NEXT: Function: 0 24; CHECK-NEXT: - Index: 1 25; CHECK-NEXT: Kind: FUNCTION 26; CHECK-NEXT: Name: bar 27; CHECK-NEXT: Flags: [ VISIBILITY_HIDDEN ] 28; CHECK-NEXT: Function: 1 29