2015-05-31 11:55:46 +08:00
|
|
|
# RUN: lld -flavor link2 /entry:main /subsystem:console /machine:x64 \
|
|
|
|
# RUN: /out:%t.exe %p/Inputs/ret42.obj
|
2015-05-30 00:06:00 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=AMD64 %s
|
2015-05-31 11:55:46 +08:00
|
|
|
# RUN: lld -flavor link2 /entry:main /subsystem:console /machine:x64 \
|
|
|
|
# RUN: /out:%t.exe %p/Inputs/ret42.lib
|
2015-05-30 05:47:36 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=AMD64 %s
|
2015-05-31 11:55:46 +08:00
|
|
|
# RUN: lld -flavor link2 /entry:main /subsystem:console /out:%t.exe \
|
2015-05-30 05:47:36 +08:00
|
|
|
# RUN: %p/Inputs/ret42.obj
|
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=AMD64 %s
|
2015-05-31 11:55:46 +08:00
|
|
|
# RUN: lld -flavor link2 /entry:main /subsystem:console /out:%t.exe \
|
2015-05-30 05:47:36 +08:00
|
|
|
# RUN: %p/Inputs/ret42.lib
|
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=AMD64 %s
|
2015-05-30 00:06:00 +08:00
|
|
|
|
|
|
|
AMD64: Machine: IMAGE_FILE_MACHINE_AMD64
|
|
|
|
|
2015-05-31 11:55:46 +08:00
|
|
|
# RUN: lld -flavor link2 /entry:main /subsystem:console /machine:x86 \
|
|
|
|
# RUN: /out:%t.exe %p/Inputs/ret42.obj
|
2015-05-30 00:06:00 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=I386 %s
|
|
|
|
|
|
|
|
I386: Machine: IMAGE_FILE_MACHINE_I386
|