1# RUN: sed -e s/ENTRYNAME/_mainCRTStartup/ %s | yaml2obj > %t.obj
2# RUN: lld-link -safeseh:no /subsystem:console /out:%t.exe %t.obj /verbose /nodefaultlib > %t.log 2>&1
3# RUN: FileCheck %s < %t.log
4
5# RUN: sed -e s/ENTRYNAME/?mainCRTStartup@@YAHXZ/ %s | yaml2obj > %t.obj
6# RUN: lld-link -safeseh:no /subsystem:console /out:%t.exe %t.obj /verbose /nodefaultlib > %t.log 2>&1
7# RUN: FileCheck %s < %t.log
8
9# CHECK: Entry name inferred: _mainCRTStartup
10
11--- !COFF
12header:
13  Machine:         IMAGE_FILE_MACHINE_I386
14  Characteristics: []
15sections:
16  - Name:            .text
17    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
18    Alignment:       4
19    SectionData:     B82A000000C3
20symbols:
21  - Name:            .text
22    Value:           0
23    SectionNumber:   1
24    SimpleType:      IMAGE_SYM_TYPE_NULL
25    ComplexType:     IMAGE_SYM_DTYPE_NULL
26    StorageClass:    IMAGE_SYM_CLASS_STATIC
27    SectionDefinition:
28      Length:          6
29      NumberOfRelocations: 0
30      NumberOfLinenumbers: 0
31      CheckSum:        0
32      Number:          0
33  - Name:            "ENTRYNAME"
34    Value:           0
35    SectionNumber:   1
36    SimpleType:      IMAGE_SYM_TYPE_NULL
37    ComplexType:     IMAGE_SYM_DTYPE_NULL
38    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
39...
40