4 # RUN: yaml2obj %p/Inputs/ret42.yaml -o in.obj
6 # RUN: lld-link /entry:main in.obj
7 # RUN: lld-link /entry:main /dll in.obj
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
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
17 # RUN: llvm-readobj in.exe | FileCheck %s
18 # RUN: llvm-readobj in.dll | FileCheck %s
20 # RUN: llvm-readobj foo.exe | FileCheck %s
21 # RUN: llvm-readobj foo.dll | FileCheck %s
23 # RUN: llvm-readobj bar.exe | FileCheck %s
24 # RUN: llvm-readobj bar.dll | FileCheck %s