Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / tools / llvm-readobj / COFF / exports-forwarder.yaml
blob61f8ab1e595d4db9e78aae325725a7d129268c28
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-readobj --coff-exports %t | FileCheck %s
4 # CHECK:      Export {
5 # CHECK-NEXT:   Ordinal: 1
6 # CHECK-NEXT:   Name: LoadLibrary
7 # CHECK-NEXT:   ForwardedTo: kernel32.LoadLibrary
8 # CHECK-NEXT: }
10 # Test file generated with:
11 #   clang -O2 --target=x86_64-windows-msvc test.c -nostdlib -c -o test.obj
12 #   lld-link -dll -out:test.dll -entry:entry -export:LoadLibrary=kernel32.LoadLibrary test.obj
13 # test.c:
14 #   void entry(void) {}
16 --- !COFF
17 OptionalHeader:
18   AddressOfEntryPoint: 4096
19   ImageBase:       6442450944
20   SectionAlignment: 4096
21   FileAlignment:   512
22   MajorOperatingSystemVersion: 6
23   MinorOperatingSystemVersion: 0
24   MajorImageVersion: 0
25   MinorImageVersion: 0
26   MajorSubsystemVersion: 6
27   MinorSubsystemVersion: 0
28   Subsystem:       IMAGE_SUBSYSTEM_WINDOWS_GUI
29   DLLCharacteristics: [ IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA, IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE, IMAGE_DLL_CHARACTERISTICS_NX_COMPAT ]
30   SizeOfStackReserve: 1048576
31   SizeOfStackCommit: 4096
32   SizeOfHeapReserve: 1048576
33   SizeOfHeapCommit: 4096
34   ExportTable:
35     RelativeVirtualAddress: 8192
36     Size:            110
37 header:
38   Machine:         IMAGE_FILE_MACHINE_AMD64
39   Characteristics: [ IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_LARGE_ADDRESS_AWARE, IMAGE_FILE_DLL ]
40 sections:
41   - Name:            .text
42     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
43     VirtualAddress:  4096
44     VirtualSize:     1
45     SectionData:     C3
46   - Name:            .rdata
47     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
48     VirtualAddress:  8192
49     VirtualSize:     110
50     SectionData:     0000000000000000000000002820000001000000010000000100000043200000472000004B2000006578706F72742D666F727761726465722E632E746D702E646C6C00592000004D20000000004C6F61644C696272617279006B65726E656C33322E4C6F61644C69627261727900
51 symbols:         []
52 ...