]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/pecoff/machinetype.test
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / pecoff / machinetype.test
1 # RUN: yaml2obj %p/Inputs/machine-type-unknown.obj.yaml > %t1.obj
2 # RUN: yaml2obj %p/Inputs/hello.obj.yaml > %t2.obj
3 # RUN: yaml2obj %p/Inputs/hello64.obj.yaml > %t3.obj
4
5 # RUN: lld -flavor link /out:%t.exe /subsystem:console /force -- %t1.obj %t2.obj
6 # RUN: llvm-readobj %t.exe | FileCheck -check-prefix=X86 %s
7
8 X86: Arch: i386
9
10 # RUN: lld -flavor link /out:%t.exe /subsystem:console /force -- %t1.obj %t3.obj
11 # RUN: llvm-readobj %t.exe | FileCheck -check-prefix=X64 %s
12
13 X64: Arch: x86_64