1# RUN: yaml2obj %s -o %t.obj 2# RUN: lld-link /entry:foo /out:%t.exe /subsystem:console /include:bar \ 3# RUN: /verbose %t.obj > %t.log 2>&1 4# RUN: FileCheck %s < %t.log 5 6# CHECK-NOT: Removed foo 7# CHECK-NOT: Removed bar 8 9--- !COFF 10header: 11 Machine: IMAGE_FILE_MACHINE_AMD64 12 Characteristics: [] 13sections: 14 - Name: '.text$mn' 15 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_READ ] 16 Alignment: 16 17 SectionData: 4883EC28E8000000004883C428C3 18 - Name: '.text$mn' 19 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_READ ] 20 Alignment: 16 21 SectionData: 4883EC28E8000000004883C428C3 22symbols: 23 - Name: '.text$mn' 24 Value: 0 25 SectionNumber: 1 26 SimpleType: IMAGE_SYM_TYPE_NULL 27 ComplexType: IMAGE_SYM_DTYPE_NULL 28 StorageClass: IMAGE_SYM_CLASS_STATIC 29 SectionDefinition: 30 Length: 14 31 NumberOfRelocations: 0 32 NumberOfLinenumbers: 0 33 CheckSum: 1682752513 34 Number: 0 35 Selection: IMAGE_COMDAT_SELECT_NODUPLICATES 36 - Name: '.text$mn' 37 Value: 0 38 SectionNumber: 2 39 SimpleType: IMAGE_SYM_TYPE_NULL 40 ComplexType: IMAGE_SYM_DTYPE_NULL 41 StorageClass: IMAGE_SYM_CLASS_STATIC 42 SectionDefinition: 43 Length: 14 44 NumberOfRelocations: 0 45 NumberOfLinenumbers: 0 46 CheckSum: 1682752513 47 Number: 0 48 Selection: IMAGE_COMDAT_SELECT_NODUPLICATES 49 - Name: foo 50 Value: 0 51 SectionNumber: 1 52 SimpleType: IMAGE_SYM_TYPE_NULL 53 ComplexType: IMAGE_SYM_DTYPE_FUNCTION 54 StorageClass: IMAGE_SYM_CLASS_EXTERNAL 55 - Name: bar 56 Value: 0 57 SectionNumber: 2 58 SimpleType: IMAGE_SYM_TYPE_NULL 59 ComplexType: IMAGE_SYM_DTYPE_FUNCTION 60 StorageClass: IMAGE_SYM_CLASS_EXTERNAL 61... 62