blob: d9dff1536adeb16d14a42c31ef7d02bff2ea1b5b [file] [log] [blame]
Fangrui Songb587ca92020-08-20 22:00:251# RUN: yaml2obj %s -o %t.main.obj
2# RUN: yaml2obj %p/Inputs/include1c.yaml -o %t.lib.obj
Martin Storsjoc02f6bf2019-06-08 18:26:183# RUN: rm -f %t.lib.lib
4# RUN: llvm-ar cru %t.lib.lib %t.lib.obj
5# RUN: lld-link /out:%t.exe /entry:main /includeoptional:bar /includeoptional:actuallymissing %t.main.obj %t.lib.lib /verbose >& %t.log
6# RUN: FileCheck %s < %t.log
7
8# CHECK: includeoptional.yaml.tmp.main.obj
9# CHECK: includeoptional.yaml.tmp.lib.lib
10# CHECK: includeoptional.yaml.tmp.lib.lib(includeoptional.yaml.tmp.lib.obj) for bar
11--- !COFF
12header:
13 Machine: IMAGE_FILE_MACHINE_AMD64
14 Characteristics: []
15sections:
16 - Name: .text
17 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
18 Alignment: 4
19 SectionData: B800000000506800000000680000000050E80000000050E800000000
20symbols:
21 - Name: .text
22 Value: 0
23 SectionNumber: 1
24 SimpleType: IMAGE_SYM_TYPE_NULL
25 ComplexType: IMAGE_SYM_DTYPE_NULL
26 StorageClass: IMAGE_SYM_CLASS_STATIC
27 SectionDefinition:
28 Length: 28
29 NumberOfRelocations: 4
30 NumberOfLinenumbers: 0
31 CheckSum: 0
32 Number: 0
33 - Name: main
34 Value: 0
35 SectionNumber: 1
36 SimpleType: IMAGE_SYM_TYPE_NULL
37 ComplexType: IMAGE_SYM_DTYPE_NULL
38 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
39...