1Ensure that we can read the COFF auxiliary symbols 'section definition' and
2'CLR token definition' as used in C++/CLI object files. Auxiliary section
3definitions usually only follow a symbol with static storage class, but
4non-const appdomain globals (external ABS) also get one.
5
6RUN: llvm-readobj -t %p/Inputs/cxx-cli-aux.obj.coff-i386 | FileCheck %s
7
8CHECK:      Symbols [
9CHECK:        Symbol {
10CHECK:          Name: ?PerAppDomain@@$$Q3HA
11CHECK-NEXT:     Value: 4
12CHECK-NEXT:     Section:  IMAGE_SYM_ABSOLUTE (-1)
13CHECK-NEXT:     BaseType: Null (0x0)
14CHECK-NEXT:     ComplexType: Null (0x0)
15CHECK-NEXT:     StorageClass: External (0x2)
16CHECK-NEXT:     AuxSymbolCount: 1
17CHECK-NEXT:     AuxSectionDef {
18CHECK-NEXT:       Length: 0
19CHECK-NEXT:       RelocationCount: 0
20CHECK-NEXT:       LineNumberCount: 0
21CHECK-NEXT:       Checksum: 0x0
22CHECK-NEXT:       Number: 0
23CHECK-NEXT:       Selection: NoDuplicates (0x1)
24CHECK-NEXT:     }
25CHECK-NEXT:   }
26
27CHECK:        Symbol {
28CHECK:          Name: 04000001
29CHECK-NEXT:     Value: 4
30CHECK-NEXT:     Section:  IMAGE_SYM_ABSOLUTE (-1)
31CHECK-NEXT:     BaseType: Null (0x0)
32CHECK-NEXT:     ComplexType: Null (0x0)
33CHECK-NEXT:     StorageClass: CLRToken (0x6B)
34CHECK-NEXT:     AuxSymbolCount: 1
35CHECK-NEXT:     AuxCLRToken {
36CHECK-NEXT:       AuxType: 1
37CHECK-NEXT:       Reserved: 0
38CHECK-NEXT:       SymbolTableIndex: ?PerAppDomain@@$$Q3HA (19)
39CHECK-NEXT:     }
40CHECK-NEXT:   }
41