Mercurial > hg > CbC > CbC_llvm
comparison lld/test/COFF/delayimports-error.test @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | 2e18cbf3894f |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 # RUN: mkdir -p %t.dir | |
2 # RUN: yaml2obj < %p/Inputs/delayimports-error.yaml > %t1.obj | |
3 # RUN: lld-link /out:%t.dir/foo.dll /dll %t1.obj /export:datasym,DATA /noentry | |
4 | |
5 # RUN: yaml2obj < %s > %t2.obj | |
6 # RUN: not lld-link /out:%t.exe /entry:main %t2.obj %t.dir/foo.lib /delayload:foo.dll \ | |
7 # RUN: /alternatename:__delayLoadHelper2=main /opt:noref >& %t.log | |
8 # RUN: FileCheck %s < %t.log | |
9 | |
10 # CHECK: cannot delay-load foo.dll due to import of data: __declspec(dllimport) datasym | |
11 | |
12 --- !COFF | |
13 header: | |
14 Machine: IMAGE_FILE_MACHINE_AMD64 | |
15 Characteristics: [] | |
16 sections: | |
17 - Name: .text | |
18 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ] | |
19 Alignment: 16 | |
20 SectionData: 0000000000000000 | |
21 symbols: | |
22 - Name: .text | |
23 Value: 0 | |
24 SectionNumber: 1 | |
25 SimpleType: IMAGE_SYM_TYPE_NULL | |
26 ComplexType: IMAGE_SYM_DTYPE_NULL | |
27 StorageClass: IMAGE_SYM_CLASS_STATIC | |
28 SectionDefinition: | |
29 Length: 8 | |
30 NumberOfRelocations: 0 | |
31 NumberOfLinenumbers: 0 | |
32 CheckSum: 0 | |
33 Number: 0 | |
34 - Name: main | |
35 Value: 0 | |
36 SectionNumber: 1 | |
37 SimpleType: IMAGE_SYM_TYPE_NULL | |
38 ComplexType: IMAGE_SYM_DTYPE_FUNCTION | |
39 StorageClass: IMAGE_SYM_CLASS_EXTERNAL | |
40 - Name: __imp_datasym | |
41 Value: 0 | |
42 SectionNumber: 0 | |
43 SimpleType: IMAGE_SYM_TYPE_NULL | |
44 ComplexType: IMAGE_SYM_DTYPE_NULL | |
45 StorageClass: IMAGE_SYM_CLASS_EXTERNAL | |
46 ... |