47 lines · plain
1# RUN: yaml2obj %s -o %t.obj2# RUN: not lld-link /out:%t.exe /entry:main %t.obj >& %t.log3# RUN: FileCheck -check-prefix=ERROR %s < %t.log4# RUN: lld-link /out:%t.exe /entry:main %t.obj /force >& %t.log5# RUN: FileCheck -check-prefix=WARN %s < %t.log6 7# ERROR: error: undefined symbol: foo8# ERROR-NEXT: >>> referenced by {{.*}}.obj9# WARN: warning: undefined symbol: foo10# WARN-NEXT: >>> referenced by {{.*}}.obj11 12--- !COFF13header:14 Machine: IMAGE_FILE_MACHINE_AMD6415 Characteristics: []16sections:17 - Name: .text18 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]19 Alignment: 420 SectionData: 00000000000021symbols:22 - Name: .text23 Value: 024 SectionNumber: 125 SimpleType: IMAGE_SYM_TYPE_NULL26 ComplexType: IMAGE_SYM_DTYPE_NULL27 StorageClass: IMAGE_SYM_CLASS_STATIC28 SectionDefinition:29 Length: 630 NumberOfRelocations: 031 NumberOfLinenumbers: 032 CheckSum: 033 Number: 034 - Name: main35 Value: 036 SectionNumber: 137 SimpleType: IMAGE_SYM_TYPE_NULL38 ComplexType: IMAGE_SYM_DTYPE_NULL39 StorageClass: IMAGE_SYM_CLASS_EXTERNAL40 - Name: foo41 Value: 042 SectionNumber: 043 SimpleType: IMAGE_SYM_TYPE_NULL44 ComplexType: IMAGE_SYM_DTYPE_NULL45 StorageClass: IMAGE_SYM_CLASS_EXTERNAL46...47