1 ; RUN: llc -filetype=obj %s -o - | obj2yaml | FileCheck %s
3 target triple = "wasm32-unknown-unknown"
5 ; Function with __attribute__((visibility("default")))
6 define void @defaultVis() #0 {
11 ; Function with __attribute__((visibility("hidden")))
12 define hidden void @hiddenVis() #0 {
18 ; CHECK-NEXT: - Index: 0
19 ; CHECK-NEXT: Kind: FUNCTION
20 ; CHECK-NEXT: Name: defaultVis
21 ; CHECK-NEXT: Flags: [ ]
22 ; CHECK-NEXT: Function: 0
23 ; CHECK-NEXT: - Index: 1
24 ; CHECK-NEXT: Kind: FUNCTION
25 ; CHECK-NEXT: Name: hiddenVis
26 ; CHECK-NEXT: Flags: [ VISIBILITY_HIDDEN ]
27 ; CHECK-NEXT: Function: 1