"Fossies" - the Fresh Open Source Software Archive

Member "cfe-9.0.0.src/test/Driver/B-opt.c" (21 May 2019, 1309 Bytes) of package /linux/misc/cfe-9.0.0.src.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "B-opt.c": 8.0.1_vs_9.0.0.

    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 -fuse-ld=ld 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 -fuse-ld=ld 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- -fuse-ld=ld 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 -fuse-ld=ld \
   21 // RUN:   | FileCheck --check-prefix=CHECK-B-OPT-MULT %s
   22 // CHECK-B-OPT-MULT: "{{.*}}/Inputs/B_opt_tree/dir3{{/|\\\\}}prefix-ld"
   23 //
   24 // RUN: %clang -B %S/Inputs/does_not_exist -print-search-dirs \
   25 // RUN:     -target aarch64-linux-gnu \
   26 // RUN:   | FileCheck --check-prefix=CHECK-B-OPT-INVALID %s
   27 // CHECK-B-OPT-INVALID-NOT: /..//bin