llvm/llvm/test/DebugInfo/PDB/section-headers.test

RUN: llvm-pdbutil dump -section-headers %p/Inputs/empty.pdb | FileCheck %s

CHECK:                       Section Headers
CHECK-NEXT: ============================================================
CHECK-LABEL:  SECTION HEADER #1
CHECK-NEXT:      .text name
CHECK-NEXT:       101A virtual size
CHECK-NEXT:       1000 virtual address
CHECK-NEXT:       1200 size of raw data
CHECK-NEXT:        400 file pointer to raw data
CHECK-NEXT:          0 file pointer to relocation table
CHECK-NEXT:          0 file pointer to line numbers
CHECK-NEXT:          0 number of relocations
CHECK-NEXT:          0 number of line numbers
CHECK-NEXT:   60000020 flags
CHECK-NEXT:            IMAGE_SCN_CNT_CODE
CHECK-NEXT:            IMAGE_SCN_MEM_EXECUTE
CHECK-NEXT:            IMAGE_SCN_MEM_READ

CHECK-LABEL:  SECTION HEADER #2
CHECK-NEXT:     .rdata name
CHECK-NEXT:        2B2 virtual size
CHECK-NEXT:       3000 virtual address
CHECK-NEXT:        400 size of raw data
CHECK-NEXT:       1600 file pointer to raw data
CHECK-NEXT:          0 file pointer to relocation table
CHECK-NEXT:          0 file pointer to line numbers
CHECK-NEXT:          0 number of relocations
CHECK-NEXT:          0 number of line numbers
CHECK-NEXT:   40000040 flags
CHECK-NEXT:            IMAGE_SCN_CNT_INITIALIZED_DATA
CHECK-NEXT:            IMAGE_SCN_MEM_READ

CHECK-LABEL:  SECTION HEADER #3
CHECK-NEXT:      .data name
CHECK-NEXT:          4 virtual size
CHECK-NEXT:       4000 virtual address
CHECK-NEXT:          0 size of raw data
CHECK-NEXT:          0 file pointer to raw data
CHECK-NEXT:          0 file pointer to relocation table
CHECK-NEXT:          0 file pointer to line numbers
CHECK-NEXT:          0 number of relocations
CHECK-NEXT:          0 number of line numbers
CHECK-NEXT:   C0000040 flags
CHECK-NEXT:            IMAGE_SCN_CNT_INITIALIZED_DATA
CHECK-NEXT:            IMAGE_SCN_MEM_READ
CHECK-NEXT:            IMAGE_SCN_MEM_WRITE

CHECK-LABEL:  SECTION HEADER #4
CHECK-NEXT:     .reloc name
CHECK-NEXT:          8 virtual size
CHECK-NEXT:       5000 virtual address
CHECK-NEXT:        200 size of raw data
CHECK-NEXT:       1A00 file pointer to raw data
CHECK-NEXT:          0 file pointer to relocation table
CHECK-NEXT:          0 file pointer to line numbers
CHECK-NEXT:          0 number of relocations
CHECK-NEXT:          0 number of line numbers
CHECK-NEXT:   42000040 flags
CHECK-NEXT:            IMAGE_SCN_CNT_INITIALIZED_DATA
CHECK-NEXT:            IMAGE_SCN_MEM_DISCARDABLE
CHECK-NEXT:            IMAGE_SCN_MEM_READ

CHECK:                        Original Section Headers
CHECK-NEXT: ============================================================
CHECK-NEXT:   PDB does not contain the requested image section header type