diff options
Diffstat (limited to 'test/pecoff/subsystem.test')
-rw-r--r-- | test/pecoff/subsystem.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/pecoff/subsystem.test b/test/pecoff/subsystem.test new file mode 100644 index 0000000000000..3ed3572bf2319 --- /dev/null +++ b/test/pecoff/subsystem.test @@ -0,0 +1,12 @@ +# 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 |