forked from OSchip/llvm-project
20 lines
672 B
Plaintext
20 lines
672 B
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: MajorImageVersion: 0
|
||
|
DEFAULT: MinorImageVersion: 0
|
||
|
|
||
|
# RUN: lld -flavor link2 /entry:main /out:%t.exe /version:11 \
|
||
|
# RUN: %p/Inputs/ret42.obj
|
||
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK1 %s
|
||
|
|
||
|
CHECK1: MajorImageVersion: 11
|
||
|
CHECK1: MinorImageVersion: 0
|
||
|
|
||
|
# RUN: lld -flavor link2 /entry:main /out:%t.exe /version:11.22 \
|
||
|
# RUN: %p/Inputs/ret42.obj
|
||
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK2 %s
|
||
|
|
||
|
CHECK2: MajorImageVersion: 11
|
||
|
CHECK2: MinorImageVersion: 22
|