1 # RUN: yaml2obj %s -o %t.obj
3 # RUN: lld-link /out:%t.exe /entry:main %t.obj /verbose >& %t.log
4 ### FileCheck doesn't like empty input, so write something.
5 # RUN: echo dummy >> %t.log
6 # RUN: FileCheck -check-prefix=CHECK1 %s < %t.log
8 # RUN: lld-link /out:%t.exe /entry:main %t.obj /verbose /include:unused >& %t.log
9 # RUN: echo dummy >> %t.log
10 # RUN: FileCheck -check-prefix=CHECK2 %s < %t.log
12 # CHECK1: Discarded unused
13 # CHECK1-NOT: Discarded used
14 # CHECK2-NOT: Discarded unused
15 # CHECK2-NOT: Discarded used
19 Machine: IMAGE_FILE_MACHINE_AMD64
23 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
25 SectionData: B82A000000C3
27 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
29 SectionData: B82A000000C3
31 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
33 SectionData: B82A000000C3
35 Characteristics: [ IMAGE_SCN_LNK_INFO, IMAGE_SCN_LNK_REMOVE ]
37 SectionData: 2f696e636c7564653a7573656400 # /include:used
42 SimpleType: IMAGE_SYM_TYPE_NULL
43 ComplexType: IMAGE_SYM_DTYPE_NULL
44 StorageClass: IMAGE_SYM_CLASS_STATIC
47 NumberOfRelocations: 0
48 NumberOfLinenumbers: 0
51 Selection: IMAGE_COMDAT_SELECT_ANY
55 SimpleType: IMAGE_SYM_TYPE_NULL
56 ComplexType: IMAGE_SYM_DTYPE_NULL
57 StorageClass: IMAGE_SYM_CLASS_STATIC
60 NumberOfRelocations: 0
61 NumberOfLinenumbers: 0
64 Selection: IMAGE_COMDAT_SELECT_ANY
68 SimpleType: IMAGE_SYM_TYPE_NULL
69 ComplexType: IMAGE_SYM_DTYPE_NULL
70 StorageClass: IMAGE_SYM_CLASS_STATIC
73 NumberOfRelocations: 0
74 NumberOfLinenumbers: 0
77 Selection: IMAGE_COMDAT_SELECT_ANY
81 SimpleType: IMAGE_SYM_TYPE_NULL
82 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
83 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
87 SimpleType: IMAGE_SYM_TYPE_NULL
88 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
89 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
93 SimpleType: IMAGE_SYM_TYPE_NULL
94 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
95 StorageClass: IMAGE_SYM_CLASS_EXTERNAL