## Check obj2yaml is able to dump the Visibility field correctly.

# RUN: yaml2obj %s | obj2yaml - | FileCheck %s

# CHECK:      --- !ELF
# CHECK-NEXT: FileHeader:
# CHECK-NEXT:   Class:   ELFCLASS64
# CHECK-NEXT:   Data:    ELFDATA2LSB
# CHECK-NEXT:   Type:    ET_REL
# CHECK-NEXT:   Machine: EM_X86_64
# CHECK-NEXT: Symbols:
# CHECK-NEXT:   - Name: default
# CHECK-NEXT:   - Name:       internal
# CHECK-NEXT:     Visibility: STV_INTERNAL
# CHECK-NEXT:   - Name:       hidden
# CHECK-NEXT:     Visibility: STV_HIDDEN
# CHECK-NEXT:   - Name:       protected
# CHECK-NEXT:     Visibility: STV_PROTECTED
# CHECK-NEXT: ...

--- !ELF
FileHeader:
  Class:   ELFCLASS64
  Data:    ELFDATA2LSB
  Type:    ET_REL
  Machine: EM_X86_64
Symbols:
  - Name:       default
    Visibility: STV_DEFAULT
  - Name:       internal
    Visibility: STV_INTERNAL
  - Name:       hidden
    Visibility: STV_HIDDEN
  - Name:       protected
    Visibility: STV_PROTECTED
