brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · d9dff15 Raw
40 lines · yaml
1# RUN: yaml2obj %s -o %t.main.obj2# RUN: yaml2obj %p/Inputs/include1c.yaml -o %t.lib.obj3# RUN: rm -f %t.lib.lib4# RUN: llvm-ar cru %t.lib.lib %t.lib.obj5# RUN: lld-link /out:%t.exe /entry:main /includeoptional:bar /includeoptional:actuallymissing %t.main.obj %t.lib.lib /verbose >& %t.log6# RUN: FileCheck %s < %t.log7 8# CHECK: includeoptional.yaml.tmp.main.obj9# CHECK: includeoptional.yaml.tmp.lib.lib10# CHECK: includeoptional.yaml.tmp.lib.lib(includeoptional.yaml.tmp.lib.obj) for bar11--- !COFF12header:13  Machine:         IMAGE_FILE_MACHINE_AMD6414  Characteristics: []15sections:16  - Name:            .text17    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]18    Alignment:       419    SectionData:     B800000000506800000000680000000050E80000000050E80000000020symbols:21  - Name:            .text22    Value:           023    SectionNumber:   124    SimpleType:      IMAGE_SYM_TYPE_NULL25    ComplexType:     IMAGE_SYM_DTYPE_NULL26    StorageClass:    IMAGE_SYM_CLASS_STATIC27    SectionDefinition:28      Length:          2829      NumberOfRelocations: 430      NumberOfLinenumbers: 031      CheckSum:        032      Number:          033  - Name:            main34    Value:           035    SectionNumber:   136    SimpleType:      IMAGE_SYM_TYPE_NULL37    ComplexType:     IMAGE_SYM_DTYPE_NULL38    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL39...40