2015-05-31 12:21:30 +08:00
|
|
|
# RUN: yaml2obj < %p/Inputs/ret42.yaml > %t.obj
|
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main %t.obj
|
2015-05-30 00:28:29 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=DEFAULT %s
|
|
|
|
|
|
|
|
DEFAULT: MajorImageVersion: 0
|
|
|
|
DEFAULT: MinorImageVersion: 0
|
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main %t.obj /version:11
|
2015-05-30 00:28:29 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK1 %s
|
|
|
|
|
|
|
|
CHECK1: MajorImageVersion: 11
|
|
|
|
CHECK1: MinorImageVersion: 0
|
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main %t.obj /version:11.22
|
2015-05-30 00:28:29 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK2 %s
|
|
|
|
|
|
|
|
CHECK2: MajorImageVersion: 11
|
|
|
|
CHECK2: MinorImageVersion: 22
|