[yaml2obj][obj2yaml] - Use a single "Other" field instead of "Other", "Visibility...
[llvm-complete.git] / test / tools / obj2yaml / elf-symbol-visibility.yaml
blob213dbf88ffb42fac1e31a541fdbeb88b0c4f5477
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:     Other: [ STV_INTERNAL ]
15 # CHECK-NEXT:   - Name: hidden
16 # CHECK-NEXT:     Other: [ STV_HIDDEN ]
17 # CHECK-NEXT:   - Name: protected
18 # CHECK-NEXT:     Other: [ 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     Other: [ STV_DEFAULT ]
30   - Name:  internal
31     Other: [ STV_INTERNAL ]
32   - Name:  hidden
33     Other: [ STV_HIDDEN ]
34   - Name:  protected
35     Other: [ STV_PROTECTED ]