2 # RUN: yaml2obj %p/Inputs/delayimports-error.yaml -o %t1.obj
3 # RUN: lld-link /out:%t.dir/foo.dll /dll %t1.obj /export:datasym,DATA /noentry
5 # RUN: yaml2obj %s -o %t2.obj
6 # RUN: env LLD_IN_TEST=1 not lld-link /out:%t.exe /entry:main %t2.obj \
7 # RUN: %t.dir/foo.lib /delayload:foo.dll \
8 # RUN: /alternatename:__delayLoadHelper2=main /opt:noref >& %t.log
9 # RUN: FileCheck %s < %t.log
11 # CHECK: cannot delay-load foo.lib(foo.dll) due to import of data: __declspec(dllimport) datasym
15 Machine: IMAGE_FILE_MACHINE_AMD64
19 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
21 SectionData: 0000000000000000
26 SimpleType: IMAGE_SYM_TYPE_NULL
27 ComplexType: IMAGE_SYM_DTYPE_NULL
28 StorageClass: IMAGE_SYM_CLASS_STATIC
31 NumberOfRelocations: 0
32 NumberOfLinenumbers: 0
38 SimpleType: IMAGE_SYM_TYPE_NULL
39 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
40 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
44 SimpleType: IMAGE_SYM_TYPE_NULL
45 ComplexType: IMAGE_SYM_DTYPE_NULL
46 StorageClass: IMAGE_SYM_CLASS_EXTERNAL