|
2 | 2 | # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
3 | 3 |
|
4 | 4 | # RUN: not ld.lld %t.o -o does_not_exist/output 2>&1 | \
|
5 |
| -# RUN: FileCheck %s -check-prefixes=NO-DIR,CHECK |
| 5 | +# RUN: FileCheck %s -check-prefixes=NO-DIR-OUTPUT,CHECK |
6 | 6 | # RUN: not ld.lld %t.o -o %s/dir_is_a_file 2>&1 | \
|
7 |
| -# RUN: FileCheck %s -check-prefixes=DIR-IS-FILE,CHECK |
| 7 | +# RUN: FileCheck %s -check-prefixes=DIR-IS-OUTPUT,CHECK |
8 | 8 |
|
9 | 9 | # RUN: echo "OUTPUT(\"does_not_exist/output\")" > %t.script
|
10 | 10 | # RUN: not ld.lld %t.o %t.script 2>&1 | \
|
11 |
| -# RUN: FileCheck %s -check-prefixes=NO-DIR,CHECK |
| 11 | +# RUN: FileCheck %s -check-prefixes=NO-DIR-OUTPUT,CHECK |
12 | 12 | # RUN: echo "OUTPUT(\"%s/dir_is_a_file\")" > %t.script
|
13 | 13 | # RUN: not ld.lld %t.o %t.script 2>&1 | \
|
14 |
| -# RUN: FileCheck %s -check-prefixes=DIR-IS-FILE,CHECK |
| 14 | +# RUN: FileCheck %s -check-prefixes=DIR-IS-OUTPUT,CHECK |
15 | 15 |
|
16 |
| -# NO-DIR: error: cannot open output file does_not_exist/output: |
17 |
| -# DIR-IS-FILE: error: cannot open output file {{.*}}/dir_is_a_file: |
| 16 | +# RUN: not ld.lld %t.o -o %t -Map=does_not_exist/output 2>&1 | \ |
| 17 | +# RUN: FileCheck %s -check-prefixes=NO-DIR-MAP,CHECK |
| 18 | +# RUN: not ld.lld %t.o -o %t -Map=%s/dir_is_a_file 2>&1 | \ |
| 19 | +# RUN: FileCheck %s -check-prefixes=DIR-IS-MAP,CHECK |
| 20 | + |
| 21 | +# NO-DIR-OUTPUT: error: cannot open output file does_not_exist/output: |
| 22 | +# DIR-IS-OUTPUT: error: cannot open output file {{.*}}/dir_is_a_file: |
| 23 | +# NO-DIR-MAP: error: cannot open map file does_not_exist/output: |
| 24 | +# DIR-IS-MAP: error: cannot open map file {{.*}}/dir_is_a_file: |
18 | 25 |
|
19 | 26 | # We should exit before doing the actual link. If an undefined symbol error is
|
20 | 27 | # discovered we haven't bailed out early as expected.
|
21 | 28 | # CHECK-NOT: undefined_symbol
|
22 | 29 |
|
23 |
| -# RUN: not ld.lld %t.o -o / 2>&1 | FileCheck %s -check-prefixes=ROOT |
| 30 | +# RUN: not ld.lld %t.o -o / 2>&1 | FileCheck %s -check-prefixes=ROOT,CHECK |
24 | 31 | # ROOT: error: cannot open output file /
|
25 | 32 |
|
26 | 33 | .globl _start
|
|
0 commit comments