1# RUN: lld-link /out:%t.exe /entry:main /subsystem:console \
2# RUN:   %p/Inputs/hello64.obj %p/Inputs/std64.lib /delayload:STD64.DLL \
3# RUN:   /alternatename:__delayLoadHelper2=main
4# RUN: llvm-readobj --coff-imports %t.exe | FileCheck -check-prefix=IMPORT %s
5# RUN: llvm-readobj --coff-basereloc %t.exe | FileCheck -check-prefix=BASEREL %s
6
7IMPORT:      DelayImport {
8IMPORT-NEXT:   Name: std64.dll
9IMPORT-NEXT:   Attributes: 0x1
10IMPORT-NEXT:   ModuleHandle: 0x3018
11IMPORT-NEXT:   ImportAddressTable: 0x3020
12IMPORT-NEXT:   ImportNameTable: 0x2040
13IMPORT-NEXT:   BoundDelayImportTable: 0x0
14IMPORT-NEXT:   UnloadDelayImportTable: 0x0
15IMPORT-NEXT:   Import {
16IMPORT-NEXT:     Symbol: ExitProcess (0)
17IMPORT-NEXT:     Address: 0x140001066
18IMPORT-NEXT:   }
19IMPORT-NEXT:   Import {
20IMPORT-NEXT:     Symbol:  (50)
21IMPORT-NEXT:     Address: 0x140001072
22IMPORT-NEXT:   }
23IMPORT-NEXT:   Import {
24IMPORT-NEXT:     Symbol: MessageBoxA (0)
25IMPORT-NEXT:     Address: 0x14000107E
26IMPORT-NEXT:   }
27IMPORT-NEXT: }
28
29BASEREL:      BaseReloc [
30BASEREL-NEXT:   Entry {
31BASEREL-NEXT:     Type: DIR64
32BASEREL-NEXT:     Address: 0x3020
33BASEREL-NEXT:   }
34BASEREL-NEXT:   Entry {
35BASEREL-NEXT:     Type: DIR64
36BASEREL-NEXT:     Address: 0x3028
37BASEREL-NEXT:   }
38BASEREL-NEXT:   Entry {
39BASEREL-NEXT:     Type: DIR64
40BASEREL-NEXT:     Address: 0x3030
41BASEREL-NEXT:   }
42