• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
2
3# RUN: mkdir -p %T/out/tmp
4# RUN: cp %t.obj %T/out/out1.obj
5# RUN: cp %t.obj %T/out/tmp/out2
6# RUN: cp %t.obj %T/out/tmp/out3.xyz
7# RUN: lld-link /lib %t.obj /out:%T/out/out4.lib
8
9# RUN: rm -f out1.exe out2.exe out3.exe out3.dll out4.exe
10# RUN: lld-link /entry:main %T/out/out1.obj
11# RUN: lld-link /entry:main %T/out/tmp/out2
12# RUN: lld-link /dll /entry:main %T/out/tmp/out3.xyz
13# RUN: lld-link /entry:main -wholearchive:%T/out/out4.lib
14
15# RUN: llvm-readobj out1.exe | FileCheck %s
16# RUN: llvm-readobj out2.exe | FileCheck %s
17# RUN: llvm-readobj out3.dll | FileCheck %s
18# RUN: llvm-readobj out4.exe | FileCheck %s
19
20CHECK: File:
21