|
1 | 1 | # REQUIRES: x86 |
2 | | -# RUN: mkdir -p %T |
3 | | -# RUN: llvm-mc -triple x86_64-unknown-windows-msvc -filetype obj -o %T/object.obj %S/Inputs/object.s |
| 2 | +# RUN: mkdir -p %t.dir |
| 3 | +# RUN: llvm-mc -triple x86_64-unknown-windows-msvc -filetype obj -o %t.dir/object.obj %S/Inputs/object.s |
4 | 4 |
|
5 | | -# RUN: lld-link /dll /machine:x64 /def:%S/Inputs/named.def /out:%T/library.dll %T/object.obj /entry:f /subsystem:CONSOLE |
6 | | -# RUN: llvm-ar t %T/library.lib | FileCheck %s -check-prefix CHECK-DEFAULT-DLL-EXT |
| 5 | +# RUN: lld-link /dll /machine:x64 /def:%S/Inputs/named.def /out:%t.dir/library.dll %t.dir/object.obj /entry:f /subsystem:CONSOLE |
| 6 | +# RUN: llvm-ar t %t.dir/library.lib | FileCheck %s -check-prefix CHECK-DEFAULT-DLL-EXT |
7 | 7 |
|
8 | | -# RUN: lld-link /machine:x64 /def:%S/Inputs/named.def /out:%T/library.lib |
9 | | -# RUN: llvm-ar t %T/library.lib | FileCheck %s -check-prefix CHECK-DEFAULT-DLL-EXT |
| 8 | +# RUN: lld-link /machine:x64 /def:%S/Inputs/named.def /out:%t.dir/library.lib |
| 9 | +# RUN: llvm-ar t %t.dir/library.lib | FileCheck %s -check-prefix CHECK-DEFAULT-DLL-EXT |
10 | 10 |
|
11 | 11 | CHECK-DEFAULT-DLL-EXT: library.dll |
12 | 12 | CHECK-DEFAULT-DLL-EXT: library.dll |
13 | 13 | CHECK-DEFAULT-DLL-EXT: library.dll |
14 | 14 | CHECK-DEFAULT-DLL-EXT: library.dll |
15 | 15 |
|
16 | | -# RUN: lld-link /machine:x64 /def:%S/Inputs/named.def /out:%T/library.exe %T/object.obj /entry:f /subsystem:CONSOLE |
17 | | -# RUN: llvm-ar t %T/library.lib | FileCheck %s -check-prefix CHECK-DEFAULT-EXE-EXT |
| 16 | +# RUN: lld-link /machine:x64 /def:%S/Inputs/named.def /out:%t.dir/library.exe %t.dir/object.obj /entry:f /subsystem:CONSOLE |
| 17 | +# RUN: llvm-ar t %t.dir/library.lib | FileCheck %s -check-prefix CHECK-DEFAULT-EXE-EXT |
18 | 18 |
|
19 | 19 | CHECK-DEFAULT-EXE-EXT: library.exe |
20 | 20 | CHECK-DEFAULT-EXE-EXT: library.exe |
21 | 21 | CHECK-DEFAULT-EXE-EXT: library.exe |
22 | 22 | CHECK-DEFAULT-EXE-EXT: library.exe |
23 | 23 |
|
24 | | -# RUN: lld-link /dll /machine:x64 /def:%S/Inputs/extension.def /out:%T/extension.dll /entry:f /subsystem:CONSOLE |
25 | | -# RUN: llvm-ar t %T/extension.lib | FileCheck %s -check-prefix CHECK-EXTENSION |
| 24 | +# RUN: lld-link /dll /machine:x64 /def:%S/Inputs/extension.def /out:%t.dir/extension.dll /entry:f /subsystem:CONSOLE |
| 25 | +# RUN: llvm-ar t %t.dir/extension.lib | FileCheck %s -check-prefix CHECK-EXTENSION |
26 | 26 |
|
27 | | -# RUN: lld-link /machine:x64 /def:%S/Inputs/extension.def /out:%T/extension.exe /entry:f /subsystem:CONSOLE |
28 | | -# RUN: llvm-ar t %T/extension.lib | FileCheck %s -check-prefix CHECK-EXTENSION |
| 27 | +# RUN: lld-link /machine:x64 /def:%S/Inputs/extension.def /out:%t.dir/extension.exe /entry:f /subsystem:CONSOLE |
| 28 | +# RUN: llvm-ar t %t.dir/extension.lib | FileCheck %s -check-prefix CHECK-EXTENSION |
29 | 29 |
|
30 | | -# RUN: lld-link /machine:x64 /def:%S/Inputs/extension.def /out:%T/extension.lib |
31 | | -# RUN: llvm-ar t %T/extension.lib | FileCheck %s -check-prefix CHECK-EXTENSION |
| 30 | +# RUN: lld-link /machine:x64 /def:%S/Inputs/extension.def /out:%t.dir/extension.lib |
| 31 | +# RUN: llvm-ar t %t.dir/extension.lib | FileCheck %s -check-prefix CHECK-EXTENSION |
32 | 32 |
|
33 | 33 | CHECK-EXTENSION: library.ext |
34 | 34 | CHECK-EXTENSION: library.ext |
35 | 35 | CHECK-EXTENSION: library.ext |
36 | 36 | CHECK-EXTENSION: library.ext |
37 | 37 |
|
38 | | -# RUN: lld-link /dll /machine:x64 /def:%S/Inputs/default.def /out:%T/default.dll /entry:f /subsystem:CONSOLE |
39 | | -# RUN: llvm-ar t %T/default.lib | FileCheck %s -check-prefix CHECK-OUTPUT-NAME-DLL |
| 38 | +# RUN: lld-link /dll /machine:x64 /def:%S/Inputs/default.def /out:%t.dir/default.dll /entry:f /subsystem:CONSOLE |
| 39 | +# RUN: llvm-ar t %t.dir/default.lib | FileCheck %s -check-prefix CHECK-OUTPUT-NAME-DLL |
40 | 40 |
|
41 | | -# RUN: lld-link /machine:x64 /def:%S/Inputs/default.def /out:%T/default.lib |
42 | | -# RUN: llvm-ar t %T/default.lib | FileCheck %s -check-prefix CHECK-OUTPUT-NAME-DLL |
| 41 | +# RUN: lld-link /machine:x64 /def:%S/Inputs/default.def /out:%t.dir/default.lib |
| 42 | +# RUN: llvm-ar t %t.dir/default.lib | FileCheck %s -check-prefix CHECK-OUTPUT-NAME-DLL |
43 | 43 |
|
44 | 44 | CHECK-OUTPUT-NAME-DLL: default.dll |
45 | 45 | CHECK-OUTPUT-NAME-DLL: default.dll |
46 | 46 | CHECK-OUTPUT-NAME-DLL: default.dll |
47 | 47 | CHECK-OUTPUT-NAME-DLL: default.dll |
48 | 48 |
|
49 | | -# RUN: lld-link /machine:x64 /def:%S/Inputs/default.def /out:%T/default.exe %T/object.obj /entry:f /subsystem:CONSOLE |
50 | | -# RUN: llvm-ar t %T/default.lib | FileCheck %s -check-prefix CHECK-OUTPUT-NAME-EXE |
| 49 | +# RUN: lld-link /machine:x64 /def:%S/Inputs/default.def /out:%t.dir/default.exe %t.dir/object.obj /entry:f /subsystem:CONSOLE |
| 50 | +# RUN: llvm-ar t %t.dir/default.lib | FileCheck %s -check-prefix CHECK-OUTPUT-NAME-EXE |
51 | 51 |
|
52 | 52 | CHECK-OUTPUT-NAME-EXE: default.exe |
53 | 53 | CHECK-OUTPUT-NAME-EXE: default.exe |
54 | 54 | CHECK-OUTPUT-NAME-EXE: default.exe |
55 | 55 | CHECK-OUTPUT-NAME-EXE: default.exe |
56 | 56 |
|
57 | | -# RUN: lld-link /machine:x64 /out:%T/default.exe %T/object.obj /entry:f /subsystem:CONSOLE |
58 | | -# RUN: llvm-ar t %T/default.lib | FileCheck %s -check-prefix CHECK-NODEF-EXE |
| 57 | +# RUN: lld-link /machine:x64 /out:%t.dir/default.exe %t.dir/object.obj /entry:f /subsystem:CONSOLE |
| 58 | +# RUN: llvm-ar t %t.dir/default.lib | FileCheck %s -check-prefix CHECK-NODEF-EXE |
59 | 59 |
|
60 | 60 | CHECK-NODEF-EXE: default.exe |
61 | 61 | CHECK-NODEF-EXE: default.exe |
62 | 62 | CHECK-NODEF-EXE: default.exe |
63 | 63 | CHECK-NODEF-EXE: default.exe |
64 | 64 |
|
65 | | -# RUN: lld-link /machine:x64 /dll /out:%T/default.dll %T/object.obj /entry:f /subsystem:CONSOLE |
66 | | -# RUN: llvm-ar t %T/default.lib | FileCheck %s -check-prefix CHECK-NODEF-DLL |
| 65 | +# RUN: lld-link /machine:x64 /dll /out:%t.dir/default.dll %t.dir/object.obj /entry:f /subsystem:CONSOLE |
| 66 | +# RUN: llvm-ar t %t.dir/default.lib | FileCheck %s -check-prefix CHECK-NODEF-DLL |
67 | 67 |
|
68 | 68 | CHECK-NODEF-DLL: default.dll |
69 | 69 | CHECK-NODEF-DLL: default.dll |
70 | 70 | CHECK-NODEF-DLL: default.dll |
71 | 71 | CHECK-NODEF-DLL: default.dll |
72 | 72 |
|
73 | | -# RUN: lld-link /nologo /machine:x64 /out:%T/exe %T/object.obj /entry:f /subsystem:CONSOLE |
| 73 | +# RUN: lld-link /nologo /machine:x64 /out:%t.dir/exe %t.dir/object.obj /entry:f /subsystem:CONSOLE |
0 commit comments