forked from OSchip/llvm-project
29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
# RUN: lld -flavor link2 /entry:main /out:%t.exe %p/Inputs/ret42.obj
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=DEFAULT %s
|
|
|
|
DEFAULT: MajorOperatingSystemVersion: 6
|
|
DEFAULT: MinorOperatingSystemVersion: 0
|
|
DEFAULT: MajorSubsystemVersion: 6
|
|
DEFAULT: MinorSubsystemVersion: 0
|
|
DEFAULT: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI
|
|
|
|
# RUN: lld -flavor link2 /entry:main /out:%t.exe /subsystem:windows \
|
|
# RUN: %p/Inputs/ret42.obj
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK1 %s
|
|
|
|
CHECK1: MajorOperatingSystemVersion: 6
|
|
CHECK1: MinorOperatingSystemVersion: 0
|
|
CHECK1: MajorSubsystemVersion: 6
|
|
CHECK1: MinorSubsystemVersion: 0
|
|
CHECK1: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_GUI
|
|
|
|
# RUN: lld -flavor link2 /entry:main /out:%t.exe /subsystem:windows,8.9 \
|
|
# RUN: %p/Inputs/ret42.obj
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK2 %s
|
|
|
|
CHECK2: MajorOperatingSystemVersion: 8
|
|
CHECK2: MinorOperatingSystemVersion: 9
|
|
CHECK2: MajorSubsystemVersion: 8
|
|
CHECK2: MinorSubsystemVersion: 9
|
|
CHECK2: Subsystem: IMAGE_SUBSYSTEM_WINDOWS_GUI
|