Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / tools / llvm-readobj / COFF / debug-directory-unmapped.test
blob789d21e89b6d26e6a1a06f1ea91c9cfaa74b6b50
1 ## Test that printing debug directories that aren't part of the runtime
2 ## mapped sections doesn't fail. Currently llvm-readobj only prints the
3 ## entry itself and not the payload. Note that there isn't currently any
4 ## meaningful data in this test input where it claims the debug entry
5 ## payload is.
7 # RUN: yaml2obj %s -o %t.exe
9 # RUN: llvm-readobj --coff-debug-directory %t.exe | FileCheck %s
11 # CHECK:      DebugDirectory [
12 # CHECK-NEXT:   DebugEntry {
13 # CHECK-NEXT:     Characteristics: 0x0
14 # CHECK-NEXT:     TimeDateStamp: 2019-01-17 21:06:10 (0x5C40EE42)
15 # CHECK-NEXT:     MajorVersion: 0x0
16 # CHECK-NEXT:     MinorVersion: 0x0
17 # CHECK-NEXT:     Type: CodeView (0x2)
18 # CHECK-NEXT:     SizeOfData: 0x19
19 # CHECK-NEXT:     AddressOfRawData: 0x0
20 # CHECK-NEXT:     PointerToRawData: 0x3E4
21 # CHECK-NEXT:   }
22 # CHECK-NEXT:   DebugEntry {
23 # CHECK-NEXT:     Characteristics: 0x0
24 # CHECK-NEXT:     TimeDateStamp: 2019-01-17 21:06:10 (0x5C40EE42)
25 # CHECK-NEXT:     MajorVersion: 0x0
26 # CHECK-NEXT:     MinorVersion: 0x0
27 # CHECK-NEXT:     Type: ExtendedDLLCharacteristics (0x14)
28 # CHECK-NEXT:     SizeOfData: 0x4
29 # CHECK-NEXT:     AddressOfRawData: 0x0
30 # CHECK-NEXT:     PointerToRawData: 0x3E0
31 # CHECK-NEXT:   }
32 # CHECK-NEXT: ]
34 --- !COFF
35 OptionalHeader:
36   AddressOfEntryPoint: 4096
37   ImageBase:       1073741824
38   SectionAlignment: 4096
39   FileAlignment:   512
40   MajorOperatingSystemVersion: 6
41   MinorOperatingSystemVersion: 0
42   MajorImageVersion: 0
43   MinorImageVersion: 0
44   MajorSubsystemVersion: 6
45   MinorSubsystemVersion: 0
46   Subsystem:       IMAGE_SUBSYSTEM_WINDOWS_CUI
47   DLLCharacteristics: [  ]
48   SizeOfStackReserve: 1048576
49   SizeOfStackCommit: 4096
50   SizeOfHeapReserve: 1048576
51   SizeOfHeapCommit: 4096
52   Debug:
53     RelativeVirtualAddress: 8192
54     Size:            56
55 header:
56   Machine:         IMAGE_FILE_MACHINE_AMD64
57   Characteristics: [  ]
58 sections:
59   - Name:            .text
60     Characteristics: [  ]
61     VirtualAddress:  4096
62     VirtualSize:     16
63     SectionData:     C3909090909090909090909090909090
64   - Name:            .buildid
65     Characteristics: [  ]
66     VirtualAddress:  8192
67     VirtualSize:     56
68     SectionData:     0000000042EE405C00000000020000001900000000000000E40300000000000042EE405C00000000140000000400000000000000E0030000
69 symbols:
70 ...