summaryrefslogtreecommitdiff
path: root/test/pecoff/subsystem.test
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-03-24 21:31:36 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-03-24 21:31:36 +0000
commitfb911942f1434f3d1750f83f25f5e42c80e60638 (patch)
tree1678c4a4f0182e4029a86d135aa4a1b7d09e3c41 /test/pecoff/subsystem.test
Notes
Diffstat (limited to 'test/pecoff/subsystem.test')
-rw-r--r--test/pecoff/subsystem.test12
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