[clang-tidy][use-internal-linkage]fix false positives for global overloaded operator...
[llvm-project.git] / lld / test / COFF / entry-inference2.test
blobad57818626b9c5b932e444ea3095093f93bde885
1 # RUN: yaml2obj %s -o %t.obj
2 # RUN: not lld-link /out:%t.exe %t.obj /verbose > %t.log 2>&1
3 # RUN: FileCheck %s < %t.log
5 # CHECK: Entry name inferred: WinMainCRTStartup
7 --- !COFF
8 header:
9   Machine:         IMAGE_FILE_MACHINE_AMD64
10   Characteristics: []
11 sections:
12   - Name:            .text
13     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
14     Alignment:       4
15     SectionData:     B82A000000C3
16   - Name:            .drectve
17     Characteristics: [ IMAGE_SCN_LNK_INFO, IMAGE_SCN_LNK_REMOVE ]
18     Alignment:       1
19     SectionData:     2f616c7465726e6174656e616d653a6d61696e3d57696e4d61696e00  # /alternatename:main=WinMain
20 symbols:
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:            WinMain
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 ...