llvm-project
39 строк · 1.3 Кб
1# RUN: yaml2obj %s -o %t.main.obj
2# RUN: yaml2obj %p/Inputs/include1c.yaml -o %t.lib.obj
3# 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--- !COFF12header:13Machine: IMAGE_FILE_MACHINE_AMD6414Characteristics: []15sections:16- Name: .text17Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]18Alignment: 419SectionData: B800000000506800000000680000000050E80000000050E80000000020symbols:21- Name: .text22Value: 023SectionNumber: 124SimpleType: IMAGE_SYM_TYPE_NULL25ComplexType: IMAGE_SYM_DTYPE_NULL26StorageClass: IMAGE_SYM_CLASS_STATIC27SectionDefinition:28Length: 2829NumberOfRelocations: 430NumberOfLinenumbers: 031CheckSum: 032Number: 033- Name: main34Value: 035SectionNumber: 136SimpleType: IMAGE_SYM_TYPE_NULL37ComplexType: IMAGE_SYM_DTYPE_NULL38StorageClass: IMAGE_SYM_CLASS_EXTERNAL39...
40