brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.7 KiB · 6b6a581 Raw
69 lines · plain
1# RUN: sed 's/ENTRY1/WinMain/;s/ENTRY2/main/' %s | yaml2obj > %t.obj2# RUN: not lld-link /subsystem:windows /out:%t.exe %t.obj > %t.log 2>&13# RUN: FileCheck -check-prefix=WINMAIN %s < %t.log4 5# RUN: sed 's/ENTRY1/wWinMain/;s/ENTRY2/main/' %s | yaml2obj > %t.obj6# RUN: not lld-link /subsystem:windows /out:%t.exe %t.obj > %t.log 2>&17# RUN: FileCheck -check-prefix=WWINMAIN %s < %t.log8 9# RUN: sed 's/ENTRY1/WinMain/;s/ENTRY2/main/' %s | yaml2obj > %t.obj10# RUN: not lld-link /subsystem:console /out:%t.exe %t.obj > %t.log 2>&111# RUN: FileCheck -check-prefix=MAIN %s < %t.log12 13# RUN: sed 's/ENTRY1/WinMain/;s/ENTRY2/wmain/' %s | yaml2obj > %t.obj14# RUN: not lld-link /subsystem:console /out:%t.exe %t.obj > %t.log 2>&115# RUN: FileCheck -check-prefix=WMAIN %s < %t.log16 17# RUN: sed 's/ENTRY1/wmain/;s/ENTRY2/main/' %s | yaml2obj > %t.obj18# RUN: not lld-link /out:%t.exe %t.obj > %t.log 2>&119# RUN: FileCheck -check-prefix=MAINWMAIN %s < %t.log20 21# RUN: sed 's/ENTRY1/wWinMain/;s/ENTRY2/WinMain/' %s | yaml2obj > %t.obj22# RUN: not lld-link /out:%t.exe %t.obj > %t.log 2>&123# RUN: FileCheck -check-prefix=WINMAINWWINMAIN %s < %t.log24 25# MAIN:            error: <root>: undefined symbol: mainCRTStartup26# WMAIN:           error: <root>: undefined symbol: wmainCRTStartup27# MAINWMAIN:       warning: found both wmain and main; using latter28# MAINWMAIN:       error: <root>: undefined symbol: mainCRTStartup29# WINMAIN:         error: <root>: undefined symbol: WinMainCRTStartup30# WWINMAIN:        error: <root>: undefined symbol: wWinMainCRTStartup31# WINMAINWWINMAIN: warning: found both wWinMain and WinMain; using latter32# WINMAINWWINMAIN: error: <root>: undefined symbol: WinMainCRTStartup33 34--- !COFF35header:36  Machine:         IMAGE_FILE_MACHINE_AMD6437  Characteristics: []38sections:39  - Name:            .text40    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]41    Alignment:       442    SectionData:     B82A000000C343symbols:44  - Name:            .text45    Value:           046    SectionNumber:   147    SimpleType:      IMAGE_SYM_TYPE_NULL48    ComplexType:     IMAGE_SYM_DTYPE_NULL49    StorageClass:    IMAGE_SYM_CLASS_STATIC50    SectionDefinition:51      Length:          652      NumberOfRelocations: 053      NumberOfLinenumbers: 054      CheckSum:        055      Number:          056  - Name:            ENTRY157    Value:           058    SectionNumber:   159    SimpleType:      IMAGE_SYM_TYPE_NULL60    ComplexType:     IMAGE_SYM_DTYPE_NULL61    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL62  - Name:            ENTRY263    Value:           064    SectionNumber:   165    SimpleType:      IMAGE_SYM_TYPE_NULL66    ComplexType:     IMAGE_SYM_DTYPE_NULL67    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL68...69