Simon Atanasyan | e015754 | 2012-10-31 12:01:53 +0000 | [diff] [blame] | 1 | // Check -B driver option. |
| 2 | // |
| 3 | // RUN: %clang %s -### -o %t.o -target i386-unknown-linux \ |
| 4 | // RUN: -B %S/Inputs/B_opt_tree/dir1 2>&1 \ |
| 5 | // RUN: | FileCheck --check-prefix=CHECK-B-OPT-TRIPLE %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 6 | // CHECK-B-OPT-TRIPLE: "{{.*}}/Inputs/B_opt_tree/dir1{{/|\\\\}}i386-unknown-linux-ld" |
Simon Atanasyan | e015754 | 2012-10-31 12:01:53 +0000 | [diff] [blame] | 7 | // |
| 8 | // RUN: %clang %s -### -o %t.o -target i386-unknown-linux \ |
| 9 | // RUN: -B %S/Inputs/B_opt_tree/dir2 2>&1 \ |
| 10 | // RUN: | FileCheck --check-prefix=CHECK-B-OPT-DIR %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 11 | // CHECK-B-OPT-DIR: "{{.*}}/Inputs/B_opt_tree/dir2{{/|\\\\}}ld" |
Simon Atanasyan | e015754 | 2012-10-31 12:01:53 +0000 | [diff] [blame] | 12 | // |
| 13 | // RUN: %clang %s -### -o %t.o -target i386-unknown-linux \ |
| 14 | // RUN: -B %S/Inputs/B_opt_tree/dir3/prefix- 2>&1 \ |
| 15 | // RUN: | FileCheck --check-prefix=CHECK-B-OPT-PREFIX %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 16 | // CHECK-B-OPT-PREFIX: "{{.*}}/Inputs/B_opt_tree/dir3{{/|\\\\}}prefix-ld" |
Simon Atanasyan | e015754 | 2012-10-31 12:01:53 +0000 | [diff] [blame] | 17 | // |
| 18 | // RUN: %clang %s -### -o %t.o -target i386-unknown-linux \ |
| 19 | // RUN: -B %S/Inputs/B_opt_tree/dir3/prefix- \ |
| 20 | // RUN: -B %S/Inputs/B_opt_tree/dir2 2>&1 \ |
| 21 | // RUN: | FileCheck --check-prefix=CHECK-B-OPT-MULT %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 22 | // CHECK-B-OPT-MULT: "{{.*}}/Inputs/B_opt_tree/dir3{{/|\\\\}}prefix-ld" |