~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/tools/llvm-readobj/cxx-cli-aux.test

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

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