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
6 # CHECK-NOT: Removed foo
7 # CHECK-NOT: Removed bar
11 Machine: IMAGE_FILE_MACHINE_AMD64
15 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_READ ]
17 SectionData: 4883EC28E8000000004883C428C3
19 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_READ ]
21 SectionData: 4883EC28E8000000004883C428C3
26 SimpleType: IMAGE_SYM_TYPE_NULL
27 ComplexType: IMAGE_SYM_DTYPE_NULL
28 StorageClass: IMAGE_SYM_CLASS_STATIC
31 NumberOfRelocations: 0
32 NumberOfLinenumbers: 0
35 Selection: IMAGE_COMDAT_SELECT_NODUPLICATES
39 SimpleType: IMAGE_SYM_TYPE_NULL
40 ComplexType: IMAGE_SYM_DTYPE_NULL
41 StorageClass: IMAGE_SYM_CLASS_STATIC
44 NumberOfRelocations: 0
45 NumberOfLinenumbers: 0
48 Selection: IMAGE_COMDAT_SELECT_NODUPLICATES
52 SimpleType: IMAGE_SYM_TYPE_NULL
53 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
54 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
58 SimpleType: IMAGE_SYM_TYPE_NULL
59 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
60 StorageClass: IMAGE_SYM_CLASS_EXTERNAL