Rename CODE_OWNERS -> Maintainers (#114544)
[llvm-project.git] / lld / test / COFF / subsystem-inference32.test
blobd213550786bd95d96a59e107c902a393d92eb1fc
1 # RUN: sed -e s/ENTRYNAME/_main/ %s | yaml2obj > %t.obj
2 # RUN: lld-link -safeseh:no /out:%t.exe %t.obj
3 # RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=MAIN %s
5 # RUN: sed s/ENTRYNAME/_wmain/ %s | yaml2obj > %t.obj
6 # RUN: lld-link -safeseh:no /out:%t.exe %t.obj
7 # RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=WMAIN %s
9 # RUN: sed s/ENTRYNAME/_WinMain@16/ %s | yaml2obj > %t.obj
10 # RUN: lld-link -safeseh:no /out:%t.exe %t.obj
11 # RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=WINMAIN %s
13 # RUN: sed s/ENTRYNAME/_wWinMain@16/ %s | yaml2obj > %t.obj
14 # RUN: lld-link -safeseh:no /out:%t.exe %t.obj
15 # RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=WWINMAIN %s
17 # MAIN:     Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI
18 # WMAIN:    Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI
19 # WINMAIN:  Subsystem: IMAGE_SUBSYSTEM_WINDOWS_GUI
20 # WWINMAIN: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_GUI
22 --- !COFF
23 header:
24   Machine:         IMAGE_FILE_MACHINE_I386
25   Characteristics: []
26 sections:
27   - Name:            .text
28     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
29     Alignment:       4
30     SectionData:     B82A000000C3
31 symbols:
32   - Name:            .text
33     Value:           0
34     SectionNumber:   1
35     SimpleType:      IMAGE_SYM_TYPE_NULL
36     ComplexType:     IMAGE_SYM_DTYPE_NULL
37     StorageClass:    IMAGE_SYM_CLASS_STATIC
38     SectionDefinition:
39       Length:          6
40       NumberOfRelocations: 0
41       NumberOfLinenumbers: 0
42       CheckSum:        0
43       Number:          0
44   - Name:            ENTRYNAME
45     Value:           0
46     SectionNumber:   1
47     SimpleType:      IMAGE_SYM_TYPE_NULL
48     ComplexType:     IMAGE_SYM_DTYPE_NULL
49     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
50   - Name:            _mainCRTStartup
51     Value:           0
52     SectionNumber:   1
53     SimpleType:      IMAGE_SYM_TYPE_NULL
54     ComplexType:     IMAGE_SYM_DTYPE_NULL
55     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
56   - Name:            _wmainCRTStartup
57     Value:           0
58     SectionNumber:   1
59     SimpleType:      IMAGE_SYM_TYPE_NULL
60     ComplexType:     IMAGE_SYM_DTYPE_NULL
61     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
62   - Name:            _WinMainCRTStartup
63     Value:           0
64     SectionNumber:   1
65     SimpleType:      IMAGE_SYM_TYPE_NULL
66     ComplexType:     IMAGE_SYM_DTYPE_NULL
67     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
68   - Name:            _wWinMainCRTStartup
69     Value:           0
70     SectionNumber:   1
71     SimpleType:      IMAGE_SYM_TYPE_NULL
72     ComplexType:     IMAGE_SYM_DTYPE_NULL
73     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
74 ...