1# REQUIRES: x86 2# RUN: yaml2obj %s -o %t.obj 3# RUN: llvm-as -o %t.lto.obj %S/Inputs/weak-external3.ll 4# RUN: lld-link /out:%t1.exe /entry:f /subsystem:console /lldmap:%t1.map %t.lto.obj 5# RUN: FileCheck --check-prefix=CHECK1 %s < %t1.map 6# RUN: lld-link /out:%t2.exe /entry:f /subsystem:console /lldmap:%t2.map %t.obj %t.lto.obj 7# RUN: FileCheck --check-prefix=CHECK2 %s < %t2.map 8 9# CHECK1: .lto.obj: 10# CHECK1-NEXT: .lto.obj: 11# CHECK1-NEXT: 0 g 12 13# CHECK2: weak-external3.test.tmp.obj 14# CHECK2-NEXT: 0 f 15 16--- !COFF 17header: 18 Machine: IMAGE_FILE_MACHINE_AMD64 19 Characteristics: [ ] 20sections: 21 - Name: '.text' 22 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ] 23 Alignment: 16 24 SectionData: 00 25symbols: 26 - Name: 'f' 27 Value: 0 28 SectionNumber: 1 29 SimpleType: IMAGE_SYM_TYPE_NULL 30 ComplexType: IMAGE_SYM_DTYPE_FUNCTION 31 StorageClass: IMAGE_SYM_CLASS_EXTERNAL 32... 33