2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /entry:main /out:%t.exe /subsystem:windows \
|
2015-05-30 00:34:31 +08:00
|
|
|
# RUN: %p/Inputs/ret42.obj
|
2019-05-01 13:49:01 +08:00
|
|
|
# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=CHECK1 %s
|
2015-05-30 00:34:31 +08:00
|
|
|
|
|
|
|
CHECK1: MajorOperatingSystemVersion: 6
|
|
|
|
CHECK1: MinorOperatingSystemVersion: 0
|
|
|
|
CHECK1: MajorSubsystemVersion: 6
|
|
|
|
CHECK1: MinorSubsystemVersion: 0
|
|
|
|
CHECK1: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_GUI
|
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /entry:main /out:%t.exe /subsystem:windows,8.9 \
|
2015-05-30 00:34:31 +08:00
|
|
|
# RUN: %p/Inputs/ret42.obj
|
2019-05-01 13:49:01 +08:00
|
|
|
# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=CHECK2 %s
|
2015-05-30 00:34:31 +08:00
|
|
|
|
|
|
|
CHECK2: MajorOperatingSystemVersion: 8
|
|
|
|
CHECK2: MinorOperatingSystemVersion: 9
|
|
|
|
CHECK2: MajorSubsystemVersion: 8
|
|
|
|
CHECK2: MinorSubsystemVersion: 9
|
|
|
|
CHECK2: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_GUI
|
2019-06-15 01:50:29 +08:00
|
|
|
|
|
|
|
# RUN: lld-link /entry:main /out:%t.exe /subsystem:default,8.9 \
|
|
|
|
# RUN: %p/Inputs/ret42.obj
|
|
|
|
# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=CHECK3 %s
|
|
|
|
|
|
|
|
CHECK3: MajorOperatingSystemVersion: 8
|
|
|
|
CHECK3: MinorOperatingSystemVersion: 9
|
|
|
|
CHECK3: MajorSubsystemVersion: 8
|
|
|
|
CHECK3: MinorSubsystemVersion: 9
|