[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Driver / mips-reduced-toolchain.cpp
blob54d269562b3a23fb7b3b2af1c363ad0d6da4d231
1 // Check frontend and linker invocations on reduced Debian MIPS toolchain.
2 // This toolchain icludes O32 ABI only.
4 // RUN: %clang -### %s 2>&1 \
5 // RUN: --target=mips-linux-gnu \
6 // RUN: --sysroot=%S/Inputs/debian_reduced_mips_tree \
7 // RUN: --gcc-toolchain="" -no-pie \
8 // RUN: | FileCheck --check-prefix=CHECK-DEBIAN-MIPS %s
9 // CHECK-DEBIAN-MIPS: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
10 // CHECK-DEBIAN-MIPS: "{{.*}}/usr/lib/gcc/mips-linux-gnu/4.7{{/|\\\\}}crtbegin.o"
11 // CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib/gcc/mips-linux-gnu/4.7"
12 // CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib/mips-linux-gnu"
13 // CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/lib"
14 // CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib"
16 // RUN: %clang -### %s 2>&1 \
17 // RUN: --target=mipsel-linux-gnu \
18 // RUN: --sysroot=%S/Inputs/debian_reduced_mips_tree \
19 // RUN: --gcc-toolchain="" -no-pie \
20 // RUN: | FileCheck --check-prefix=CHECK-DEBIAN-MIPSEL %s
21 // CHECK-DEBIAN-MIPSEL: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
22 // CHECK-DEBIAN-MIPSEL: "{{.*}}/usr/lib/gcc/mipsel-linux-gnu/4.7{{/|\\\\}}crtbegin.o"
23 // CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib/gcc/mipsel-linux-gnu/4.7"
24 // CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib/mipsel-linux-gnu"
25 // CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/lib"
26 // CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib"