[llvm/test/Object] - Cleanup and move out the yaml2obj tests.
[llvm-complete.git] / test / tools / obj2yaml / elf-symbol-visibility.yaml
blobc749735e3d67ce91f2d602ea7436cc5c70579815
1 ## Check obj2yaml is able to dump the Visibility field correctly.
3 # RUN: yaml2obj %s | obj2yaml - | FileCheck %s
5 # CHECK:      --- !ELF
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
19 # CHECK-NEXT: ...
21 --- !ELF
22 FileHeader:
23   Class:   ELFCLASS64
24   Data:    ELFDATA2LSB
25   Type:    ET_REL
26   Machine: EM_X86_64
27 Symbols:
28   - Name:       default
29     Visibility: STV_DEFAULT
30   - Name:       internal
31     Visibility: STV_INTERNAL
32   - Name:       hidden
33     Visibility: STV_HIDDEN
34   - Name:       protected
35     Visibility: STV_PROTECTED