1f4a2713aSLionel Sambuc // Check -B driver option. 2f4a2713aSLionel Sambuc // 3f4a2713aSLionel Sambuc // RUN: %clang %s -### -o %t.o -target i386-unknown-linux \ 4f4a2713aSLionel Sambuc // RUN: -B %S/Inputs/B_opt_tree/dir1 2>&1 \ 5f4a2713aSLionel Sambuc // RUN: | FileCheck --check-prefix=CHECK-B-OPT-TRIPLE %s 6*0a6a1f1dSLionel Sambuc // CHECK-B-OPT-TRIPLE: "{{.*}}/Inputs/B_opt_tree/dir1{{/|\\\\}}i386-unknown-linux-ld" 7f4a2713aSLionel Sambuc // 8f4a2713aSLionel Sambuc // RUN: %clang %s -### -o %t.o -target i386-unknown-linux \ 9f4a2713aSLionel Sambuc // RUN: -B %S/Inputs/B_opt_tree/dir2 2>&1 \ 10f4a2713aSLionel Sambuc // RUN: | FileCheck --check-prefix=CHECK-B-OPT-DIR %s 11*0a6a1f1dSLionel Sambuc // CHECK-B-OPT-DIR: "{{.*}}/Inputs/B_opt_tree/dir2{{/|\\\\}}ld" 12f4a2713aSLionel Sambuc // 13f4a2713aSLionel Sambuc // RUN: %clang %s -### -o %t.o -target i386-unknown-linux \ 14f4a2713aSLionel Sambuc // RUN: -B %S/Inputs/B_opt_tree/dir3/prefix- 2>&1 \ 15f4a2713aSLionel Sambuc // RUN: | FileCheck --check-prefix=CHECK-B-OPT-PREFIX %s 16*0a6a1f1dSLionel Sambuc // CHECK-B-OPT-PREFIX: "{{.*}}/Inputs/B_opt_tree/dir3{{/|\\\\}}prefix-ld" 17f4a2713aSLionel Sambuc // 18f4a2713aSLionel Sambuc // RUN: %clang %s -### -o %t.o -target i386-unknown-linux \ 19f4a2713aSLionel Sambuc // RUN: -B %S/Inputs/B_opt_tree/dir3/prefix- \ 20f4a2713aSLionel Sambuc // RUN: -B %S/Inputs/B_opt_tree/dir2 2>&1 \ 21f4a2713aSLionel Sambuc // RUN: | FileCheck --check-prefix=CHECK-B-OPT-MULT %s 22*0a6a1f1dSLionel Sambuc // CHECK-B-OPT-MULT: "{{.*}}/Inputs/B_opt_tree/dir3{{/|\\\\}}prefix-ld" 23