1## Check yaml2obj is able to parse the Visibility field and produce the output.
2
3# RUN: yaml2obj %s | llvm-readobj --symbols - | FileCheck --check-prefix OBJ %s
4
5# OBJ:      Symbol {
6# OBJ:        Name: default1
7# OBJ-NEXT:   Value: 0x0
8# OBJ-NEXT:   Size: 0
9# OBJ-NEXT:   Binding: Local (0x0)
10# OBJ-NEXT:   Type: None (0x0)
11# OBJ-NEXT:   Other: 0
12# OBJ-NEXT:   Section: Undefined (0x0)
13# OBJ-NEXT: }
14# OBJ-NEXT: Symbol {
15# OBJ-NEXT:   Name: default2
16# OBJ-NEXT:   Value: 0x0
17# OBJ-NEXT:   Size: 0
18# OBJ-NEXT:   Binding: Local (0x0)
19# OBJ-NEXT:   Type: None (0x0)
20# OBJ-NEXT:   Other: 0
21# OBJ-NEXT:   Section: Undefined (0x0)
22# OBJ-NEXT: }
23# OBJ-NEXT: Symbol {
24# OBJ-NEXT:   Name: internal
25# OBJ-NEXT:   Value: 0x0
26# OBJ-NEXT:   Size: 0
27# OBJ-NEXT:   Binding: Local (0x0)
28# OBJ-NEXT:   Type: None (0x0)
29# OBJ-NEXT:   Other [ (0x1)
30# OBJ-NEXT:     STV_INTERNAL (0x1)
31# OBJ-NEXT:   ]
32# OBJ-NEXT:   Section: Undefined (0x0)
33# OBJ-NEXT: }
34# OBJ-NEXT: Symbol {
35# OBJ-NEXT:   Name: hidden
36# OBJ-NEXT:   Value: 0x0
37# OBJ-NEXT:   Size: 0
38# OBJ-NEXT:   Binding: Local (0x0)
39# OBJ-NEXT:   Type: None (0x0)
40# OBJ-NEXT:   Other [ (0x2)
41# OBJ-NEXT:     STV_HIDDEN (0x2)
42# OBJ-NEXT:   ]
43# OBJ-NEXT:   Section: Undefined (0x0)
44# OBJ-NEXT: }
45# OBJ-NEXT: Symbol {
46# OBJ-NEXT:   Name: protected
47# OBJ-NEXT:   Value: 0x0
48# OBJ-NEXT:   Size: 0
49# OBJ-NEXT:   Binding: Local (0x0)
50# OBJ-NEXT:   Type: None (0x0)
51# OBJ-NEXT:   Other [ (0x3)
52# OBJ-NEXT:     STV_PROTECTED (0x3)
53# OBJ-NEXT:   ]
54# OBJ-NEXT:   Section: Undefined (0x0)
55# OBJ-NEXT: }
56
57--- !ELF
58FileHeader:
59  Class: ELFCLASS64
60  Data:  ELFDATA2LSB
61  Type:  ET_REL
62Symbols:
63  - Name:  default1
64  - Name:  default2
65    Other: [ STV_DEFAULT ]
66  - Name:  internal
67    Other: [ STV_INTERNAL ]
68  - Name:  hidden
69    Other: [ STV_HIDDEN ]
70  - Name:  protected
71    Other: [ STV_PROTECTED ]
72