llvm-project/lld/test/pecoff/subsystem.test

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