1 ; RUN: llc -filetype=obj %s -o - | obj2yaml | FileCheck %s
3 target triple = "wasm32-unknown-unknown"
5 define hidden i32 @foo() section "baz" {
10 define hidden i32 @bar() section "baz" {
15 ; CHECK: - Type: CUSTOM
16 ; CHECK-NEXT: Name: linking
17 ; CHECK-NEXT: Version: 2
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