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
6 # OBJ: Name: default (1)
9 # OBJ-NEXT: Binding: Local (0x0)
10 # OBJ-NEXT: Type: None (0x0)
12 # OBJ-NEXT: Section: Undefined (0x0)
15 # OBJ-NEXT: Name: internal (16)
16 # OBJ-NEXT: Value: 0x0
18 # OBJ-NEXT: Binding: Local (0x0)
19 # OBJ-NEXT: Type: None (0x0)
20 # OBJ-NEXT: Other [ (0x1)
21 # OBJ-NEXT: STV_INTERNAL (0x1)
23 # OBJ-NEXT: Section: Undefined (0x0)
26 # OBJ-NEXT: Name: hidden (9)
27 # OBJ-NEXT: Value: 0x0
29 # OBJ-NEXT: Binding: Local (0x0)
30 # OBJ-NEXT: Type: None (0x0)
31 # OBJ-NEXT: Other [ (0x2)
32 # OBJ-NEXT: STV_HIDDEN (0x2)
34 # OBJ-NEXT: Section: Undefined (0x0)
37 # OBJ-NEXT: Name: protected (25)
38 # OBJ-NEXT: Value: 0x0
40 # OBJ-NEXT: Binding: Local (0x0)
41 # OBJ-NEXT: Type: None (0x0)
42 # OBJ-NEXT: Other [ (0x3)
43 # OBJ-NEXT: STV_PROTECTED (0x3)
45 # OBJ-NEXT: Section: Undefined (0x0)
56 Visibility: STV_DEFAULT
58 Visibility: STV_INTERNAL
60 Visibility: STV_HIDDEN
62 Visibility: STV_PROTECTED