46 lines · plain
1# RUN: yaml2obj %s -o %t1.obj2# RUN: yaml2obj %s -o %t2.obj3 4# RUN: not lld-link /out:%t.exe /entry:main %t1.obj %t2.obj >& %t.log5# RUN: FileCheck -check-prefix=ERROR %s < %t.log6 7# RUN: lld-link /out:%t.exe /entry:main %t1.obj %t2.obj /force >& %t.log8# RUN: FileCheck -check-prefix=WARN %s < %t.log9 10# RUN: lld-link /out:%t.exe /entry:main %t1.obj %t2.obj /force:multiple >& %t.log11# RUN: FileCheck -check-prefix=WARN %s < %t.log12 13# ERROR: error: duplicate symbol: main14 15# WARN: warning: duplicate symbol: main16 17--- !COFF18header:19 Machine: IMAGE_FILE_MACHINE_AMD6420 Characteristics: []21sections:22 - Name: .text23 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]24 Alignment: 425 SectionData: 00000000000026symbols:27 - Name: .text28 Value: 029 SectionNumber: 130 SimpleType: IMAGE_SYM_TYPE_NULL31 ComplexType: IMAGE_SYM_DTYPE_NULL32 StorageClass: IMAGE_SYM_CLASS_STATIC33 SectionDefinition:34 Length: 635 NumberOfRelocations: 036 NumberOfLinenumbers: 037 CheckSum: 038 Number: 039 - Name: main40 Value: 041 SectionNumber: 142 SimpleType: IMAGE_SYM_TYPE_NULL43 ComplexType: IMAGE_SYM_DTYPE_NULL44 StorageClass: IMAGE_SYM_CLASS_EXTERNAL45...46