1# RUN: yaml2obj < %s > %t.obj
2# RUN: lld-link /out:%t.exe /entry:main %t.obj
3# RUN: llvm-as -o %t.lto.obj %S/Inputs/entry-mangled.ll
4# RUN: lld-link /out:%t.exe /entry:main %t.lto.obj
5
6--- !COFF
7header:
8  Machine:         IMAGE_FILE_MACHINE_AMD64
9  Characteristics: []
10sections:
11  - Name:            .text
12    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
13    Alignment:       4
14    SectionData:     000000000000
15symbols:
16  - Name:            .text
17    Value:           0
18    SectionNumber:   1
19    SimpleType:      IMAGE_SYM_TYPE_NULL
20    ComplexType:     IMAGE_SYM_DTYPE_NULL
21    StorageClass:    IMAGE_SYM_CLASS_STATIC
22    SectionDefinition:
23      Length:          6
24      NumberOfRelocations: 0
25      NumberOfLinenumbers: 0
26      CheckSum:        0
27      Number:          0
28      Selection:       IMAGE_COMDAT_SELECT_ANY
29  - Name:            '?main@@YAHXZ'
30    Value:           0
31    SectionNumber:   1
32    SimpleType:      IMAGE_SYM_TYPE_NULL
33    ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
34    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
35...
36