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 6 // CHECK-B-OPT-TRIPLE: "{{.*}}/Inputs/B_opt_tree/dir1{{/|\\\\}}i386-unknown-linux-ld" 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 11 // CHECK-B-OPT-DIR: "{{.*}}/Inputs/B_opt_tree/dir2{{/|\\\\}}ld" 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 16 // CHECK-B-OPT-PREFIX: "{{.*}}/Inputs/B_opt_tree/dir3{{/|\\\\}}prefix-ld" 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 22 // CHECK-B-OPT-MULT: "{{.*}}/Inputs/B_opt_tree/dir3{{/|\\\\}}prefix-ld" 23