summaryrefslogtreecommitdiffstats
path: root/lld/test/COFF/out.test
blob: 6d7667e906e70dbf905617e474749350bdec737e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# RUN: yaml2obj < %p/Inputs/ret42.yaml > %t.obj

# RUN: mkdir -p %T/out/tmp
# RUN: cp %t.obj %T/out/out1.obj
# RUN: cp %t.obj %T/out/tmp/out2
# RUN: cp %t.obj %T/out/tmp/out3.xyz
# RUN: lld-link /lib %t.obj /out:%T/out/out4.lib

# RUN: rm -f out1.exe out2.exe out3.exe out3.dll out4.exe
# RUN: lld-link /entry:main %T/out/out1.obj
# RUN: lld-link /entry:main %T/out/tmp/out2
# RUN: lld-link /dll /entry:main %T/out/tmp/out3.xyz
# RUN: lld-link /entry:main -wholearchive:%T/out/out4.lib

# RUN: llvm-readobj out1.exe | FileCheck %s
# RUN: llvm-readobj out2.exe | FileCheck %s
# RUN: llvm-readobj out3.dll | FileCheck %s
# RUN: llvm-readobj out4.exe | FileCheck %s

CHECK: File:
OpenPOWER on IntegriCloud