1# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj 2 3# RUN: lld-link /out:%t.exe /entry:main %t.obj 4# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=DEFAULT %s 5 6DEFAULT: MajorImageVersion: 0 7DEFAULT: MinorImageVersion: 0 8 9# RUN: lld-link /out:%t.exe /entry:main %t.obj /version:11 10# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=CHECK1 %s 11 12CHECK1: MajorImageVersion: 11 13CHECK1: MinorImageVersion: 0 14 15# RUN: lld-link /out:%t.exe /entry:main %t.obj /version:11.22 16# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=CHECK2 %s 17 18CHECK2: MajorImageVersion: 11 19CHECK2: MinorImageVersion: 22 20 21# RUN: lld-link /out:%t.exe /entry:main %t.obj /version:8.09 22# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=CHECK3 %s 23 24CHECK3: MajorImageVersion: 8 25CHECK3: MinorImageVersion: 9 26