llvm-project
26 строк · 772.0 Байт
1# RUN: rm -rf %t
2# RUN: mkdir -p %t
3# RUN: cd %t
4# RUN: yaml2obj %p/Inputs/ret42.yaml -o in.obj
5
6# RUN: lld-link /entry:main in.obj
7# RUN: lld-link /entry:main /dll in.obj
8
9# RUN: echo -e "NAME foo\n" > fooexe.def
10# RUN: echo -e "LIBRARY foo\n" > foodll.def
11# RUN: lld-link /entry:main /def:fooexe.def in.obj
12# RUN: lld-link /entry:main /def:foodll.def /dll in.obj
13
14# RUN: lld-link /entry:main /out:bar.exe /def:fooexe.def in.obj
15# RUN: lld-link /entry:main /out:bar.dll /def:foodll.def /dll in.obj
16
17# RUN: llvm-readobj in.exe | FileCheck %s
18# RUN: llvm-readobj in.dll | FileCheck %s
19
20# RUN: llvm-readobj foo.exe | FileCheck %s
21# RUN: llvm-readobj foo.dll | FileCheck %s
22
23# RUN: llvm-readobj bar.exe | FileCheck %s
24# RUN: llvm-readobj bar.dll | FileCheck %s
25
26CHECK: File:
27