1 ## Check yaml2obj is able to parse the Visibility field and produce the output.
3 # RUN: yaml2obj %s | llvm-readobj --symbols - | FileCheck --check-prefix OBJ %s
9 # OBJ-NEXT: Binding: Local (0x0)
10 # OBJ-NEXT: Type: None (0x0)
12 # OBJ-NEXT: Section: Undefined (0x0)
15 # OBJ-NEXT: Name: default2
16 # OBJ-NEXT: Value: 0x0
18 # OBJ-NEXT: Binding: Local (0x0)
19 # OBJ-NEXT: Type: None (0x0)
21 # OBJ-NEXT: Section: Undefined (0x0)
24 # OBJ-NEXT: Name: internal
25 # OBJ-NEXT: Value: 0x0
27 # OBJ-NEXT: Binding: Local (0x0)
28 # OBJ-NEXT: Type: None (0x0)
29 # OBJ-NEXT: Other [ (0x1)
30 # OBJ-NEXT: STV_INTERNAL (0x1)
32 # OBJ-NEXT: Section: Undefined (0x0)
35 # OBJ-NEXT: Name: hidden
36 # OBJ-NEXT: Value: 0x0
38 # OBJ-NEXT: Binding: Local (0x0)
39 # OBJ-NEXT: Type: None (0x0)
40 # OBJ-NEXT: Other [ (0x2)
41 # OBJ-NEXT: STV_HIDDEN (0x2)
43 # OBJ-NEXT: Section: Undefined (0x0)
46 # OBJ-NEXT: Name: protected
47 # OBJ-NEXT: Value: 0x0
49 # OBJ-NEXT: Binding: Local (0x0)
50 # OBJ-NEXT: Type: None (0x0)
51 # OBJ-NEXT: Other [ (0x3)
52 # OBJ-NEXT: STV_PROTECTED (0x3)
54 # OBJ-NEXT: Section: Undefined (0x0)
65 Other: [ STV_DEFAULT ]
67 Other: [ STV_INTERNAL ]
71 Other: [ STV_PROTECTED ]