[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / DebugInfo / PDB / section-headers.test
bloba4b4ba427c1a0a2f116f3f0bba63744204984f4d
1 RUN: llvm-pdbutil dump -section-headers %p/Inputs/empty.pdb | FileCheck %s
3 CHECK:                       Section Headers
4 CHECK-NEXT: ============================================================
5 CHECK-LABEL:  SECTION HEADER #1
6 CHECK-NEXT:      .text name
7 CHECK-NEXT:       101A virtual size
8 CHECK-NEXT:       1000 virtual address
9 CHECK-NEXT:       1200 size of raw data
10 CHECK-NEXT:        400 file pointer to raw data
11 CHECK-NEXT:          0 file pointer to relocation table
12 CHECK-NEXT:          0 file pointer to line numbers
13 CHECK-NEXT:          0 number of relocations
14 CHECK-NEXT:          0 number of line numbers
15 CHECK-NEXT:   60000020 flags
16 CHECK-NEXT:            IMAGE_SCN_CNT_CODE
17 CHECK-NEXT:            IMAGE_SCN_MEM_EXECUTE
18 CHECK-NEXT:            IMAGE_SCN_MEM_READ
20 CHECK-LABEL:  SECTION HEADER #2
21 CHECK-NEXT:     .rdata name
22 CHECK-NEXT:        2B2 virtual size
23 CHECK-NEXT:       3000 virtual address
24 CHECK-NEXT:        400 size of raw data
25 CHECK-NEXT:       1600 file pointer to raw data
26 CHECK-NEXT:          0 file pointer to relocation table
27 CHECK-NEXT:          0 file pointer to line numbers
28 CHECK-NEXT:          0 number of relocations
29 CHECK-NEXT:          0 number of line numbers
30 CHECK-NEXT:   40000040 flags
31 CHECK-NEXT:            IMAGE_SCN_CNT_INITIALIZED_DATA
32 CHECK-NEXT:            IMAGE_SCN_MEM_READ
34 CHECK-LABEL:  SECTION HEADER #3
35 CHECK-NEXT:      .data name
36 CHECK-NEXT:          4 virtual size
37 CHECK-NEXT:       4000 virtual address
38 CHECK-NEXT:          0 size of raw data
39 CHECK-NEXT:          0 file pointer to raw data
40 CHECK-NEXT:          0 file pointer to relocation table
41 CHECK-NEXT:          0 file pointer to line numbers
42 CHECK-NEXT:          0 number of relocations
43 CHECK-NEXT:          0 number of line numbers
44 CHECK-NEXT:   C0000040 flags
45 CHECK-NEXT:            IMAGE_SCN_CNT_INITIALIZED_DATA
46 CHECK-NEXT:            IMAGE_SCN_MEM_READ
47 CHECK-NEXT:            IMAGE_SCN_MEM_WRITE
49 CHECK-LABEL:  SECTION HEADER #4
50 CHECK-NEXT:     .reloc name
51 CHECK-NEXT:          8 virtual size
52 CHECK-NEXT:       5000 virtual address
53 CHECK-NEXT:        200 size of raw data
54 CHECK-NEXT:       1A00 file pointer to raw data
55 CHECK-NEXT:          0 file pointer to relocation table
56 CHECK-NEXT:          0 file pointer to line numbers
57 CHECK-NEXT:          0 number of relocations
58 CHECK-NEXT:          0 number of line numbers
59 CHECK-NEXT:   42000040 flags
60 CHECK-NEXT:            IMAGE_SCN_CNT_INITIALIZED_DATA
61 CHECK-NEXT:            IMAGE_SCN_MEM_DISCARDABLE
62 CHECK-NEXT:            IMAGE_SCN_MEM_READ
64 CHECK:                        Original Section Headers
65 CHECK-NEXT: ============================================================
66 CHECK-NEXT:   PDB does not contain the requested image section header type