1 # RUN: yaml2obj %s -o %t.obj
3 # RUN: lld-link /out:%t.exe /entry:main %t.obj \
4 # RUN: /verbose 2>&1 | FileCheck -check-prefix=REF %s
6 # /debug disables the /opt:ref default...
7 # RUN: lld-link /out:%t.exe /debug /entry:main %t.obj \
8 # RUN: /verbose 2>&1 | FileCheck -check-prefix=NOREF %s
10 # ...unless /profile is passed as well.
11 # RUN: lld-link /out:%t.exe /profile /debug /entry:main %t.obj \
12 # RUN: /verbose 2>&1 | FileCheck -check-prefix=REF %s
14 # RUN: lld-link /out:%t.exe /opt:ref /debug /entry:main %t.obj \
15 # RUN: /verbose 2>&1 | FileCheck -check-prefix=REF %s
17 # RUN: lld-link /out:%t.exe /entry:main %t.obj \
18 # RUN: /verbose /opt:noref /profile 2>&1 | FileCheck -check-prefix=NOREF %s
20 # REF: Discarded unused
21 # NOREF-NOT: Discarded unused
25 Machine: IMAGE_FILE_MACHINE_AMD64
29 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
31 SectionData: B82A000000C3
33 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
35 SectionData: B82A000000C3
40 SimpleType: IMAGE_SYM_TYPE_NULL
41 ComplexType: IMAGE_SYM_DTYPE_NULL
42 StorageClass: IMAGE_SYM_CLASS_STATIC
45 NumberOfRelocations: 0
46 NumberOfLinenumbers: 0
49 Selection: IMAGE_COMDAT_SELECT_ANY
53 SimpleType: IMAGE_SYM_TYPE_NULL
54 ComplexType: IMAGE_SYM_DTYPE_NULL
55 StorageClass: IMAGE_SYM_CLASS_STATIC
58 NumberOfRelocations: 0
59 NumberOfLinenumbers: 0
62 Selection: IMAGE_COMDAT_SELECT_ANY
66 SimpleType: IMAGE_SYM_TYPE_NULL
67 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
68 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
72 SimpleType: IMAGE_SYM_TYPE_NULL
73 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
74 StorageClass: IMAGE_SYM_CLASS_EXTERNAL