Files
clang-p2996/lld/test/pecoff/subsystem.test
Rui Ueyama 1a11b3b001 [PECOFF] Infer subsystem from the entry point function.
If /subsystem option is not specified, the linker needs to infer it from the
entry point function. If "main" or "wmain" is defined, it's a console
application. If "WinMain" or "wWinMain" is defined, it's a GUI application.

llvm-svn: 195592
2013-11-25 02:00:00 +00:00

13 lines
523 B
Plaintext

# RUN: yaml2obj %p/Inputs/subsystem.main.yaml > %t.main.obj
# RUN: yaml2obj %p/Inputs/subsystem.winmain.yaml > %t.winmain.obj
#
# RUN: lld -flavor link /out:%t.main.exe -- %t.main.obj
# RUN: llvm-readobj -file-headers %t.main.exe | FileCheck -check-prefix=MAIN %s
#
# RUN: lld -flavor link /out:%t.winmain.exe -- %t.winmain.obj
# RUN: llvm-readobj -file-headers %t.winmain.exe | \
# RUN: FileCheck -check-prefix=WINMAIN %s
MAIN: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI
WINMAIN: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_GUI