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
24 Machine: IMAGE_FILE_MACHINE_I386
28 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
30 SectionData: B82A000000C3
35 SimpleType: IMAGE_SYM_TYPE_NULL
36 ComplexType: IMAGE_SYM_DTYPE_NULL
37 StorageClass: IMAGE_SYM_CLASS_STATIC
40 NumberOfRelocations: 0
41 NumberOfLinenumbers: 0
47 SimpleType: IMAGE_SYM_TYPE_NULL
48 ComplexType: IMAGE_SYM_DTYPE_NULL
49 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
50 - Name: _mainCRTStartup
53 SimpleType: IMAGE_SYM_TYPE_NULL
54 ComplexType: IMAGE_SYM_DTYPE_NULL
55 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
56 - Name: _wmainCRTStartup
59 SimpleType: IMAGE_SYM_TYPE_NULL
60 ComplexType: IMAGE_SYM_DTYPE_NULL
61 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
62 - Name: _WinMainCRTStartup
65 SimpleType: IMAGE_SYM_TYPE_NULL
66 ComplexType: IMAGE_SYM_DTYPE_NULL
67 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
68 - Name: _wWinMainCRTStartup
71 SimpleType: IMAGE_SYM_TYPE_NULL
72 ComplexType: IMAGE_SYM_DTYPE_NULL
73 StorageClass: IMAGE_SYM_CLASS_EXTERNAL