1 ## Check obj2yaml is able to dump the Visibility field correctly.
3 # RUN: yaml2obj %s | obj2yaml - | FileCheck %s
6 # CHECK-NEXT: FileHeader:
7 # CHECK-NEXT: Class: ELFCLASS64
8 # CHECK-NEXT: Data: ELFDATA2LSB
9 # CHECK-NEXT: Type: ET_REL
10 # CHECK-NEXT: Machine: EM_X86_64
11 # CHECK-NEXT: Symbols:
12 # CHECK-NEXT: - Name: default
13 # CHECK-NEXT: - Name: internal
14 # CHECK-NEXT: Visibility: STV_INTERNAL
15 # CHECK-NEXT: - Name: hidden
16 # CHECK-NEXT: Visibility: STV_HIDDEN
17 # CHECK-NEXT: - Name: protected
18 # CHECK-NEXT: Visibility: STV_PROTECTED
29 Visibility: STV_DEFAULT
31 Visibility: STV_INTERNAL
33 Visibility: STV_HIDDEN
35 Visibility: STV_PROTECTED