[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / cross-linux.c
blob6bd7de52d4aa4dbdad3f02be524782afec4f3b56
1 // RUN: %clang -### -o %t %s 2>&1 -no-integrated-as -fuse-ld=ld \
2 // RUN: --gcc-toolchain=%S/Inputs/basic_cross_linux_tree/usr \
3 // RUN: --target=i386-unknown-linux-gnu \
4 // RUN: | FileCheck --check-prefix=CHECK-I386 %s
5 // CHECK-I386: "-cc1" "-triple" "i386-unknown-linux-gnu"
6 // CHECK-I386: "{{.*}}/Inputs/basic_cross_linux_tree/usr/lib/gcc/i386-unknown-linux-gnu/10.2.0/../../../../i386-unknown-linux-gnu/bin{{/|\\\\}}as" "--32"
7 // CHECK-I386: "{{.*}}/Inputs/basic_cross_linux_tree/usr/lib/gcc/i386-unknown-linux-gnu/10.2.0/../../../../i386-unknown-linux-gnu/bin{{/|\\\\}}ld" {{.*}} "-m" "elf_i386"
8 //
9 // RUN: %clang -### -o %t %s 2>&1 -no-integrated-as -fuse-ld=ld \
10 // RUN: --gcc-toolchain=%S/Inputs/basic_cross_linux_tree/usr \
11 // RUN: --target=x86_64-unknown-linux-gnu \
12 // RUN: | FileCheck --check-prefix=CHECK-X86-64 %s
13 // CHECK-X86-64: "-cc1" "-triple" "x86_64-unknown-linux-gnu"
14 // CHECK-X86-64: "{{.*}}/Inputs/basic_cross_linux_tree/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin{{/|\\\\}}as" "--64"
15 // CHECK-X86-64: "{{.*}}/Inputs/basic_cross_linux_tree/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin{{/|\\\\}}ld" {{.*}} "-m" "elf_x86_64"
17 // RUN: %clang -### -o %t %s 2>&1 -no-integrated-as -fuse-ld=ld \
18 // RUN: --gcc-toolchain=%S/Inputs/basic_cross_linux_tree/usr \
19 // RUN: --target=x86_64-unknown-linux-gnux32 \
20 // RUN: | FileCheck --check-prefix=CHECK-X32 %s
21 // CHECK-X32: "-cc1" "-triple" "x86_64-unknown-linux-gnux32"
22 // CHECK-X32: "{{.*}}/Inputs/basic_cross_linux_tree/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin{{/|\\\\}}as" "--x32"
23 // CHECK-X32: "{{.*}}/Inputs/basic_cross_linux_tree/usr/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/../../../../x86_64-unknown-linux-gnu/bin{{/|\\\\}}ld" {{.*}} "-m" "elf32_x86_64"
25 // RUN: %clang -### -o %t %s 2>&1 -no-integrated-as -fuse-ld=ld \
26 // RUN: --gcc-toolchain=%S/Inputs/basic_cross_linux_tree/usr \
27 // RUN: --target=x86_64-unknown-linux-gnu -m32 \
28 // RUN: | FileCheck --check-prefix=CHECK-I386 %s
30 // RUN: %clang -### -o %t %s 2>&1 -no-integrated-as -fuse-ld=ld \
31 // RUN: --gcc-toolchain=%S/Inputs/basic_cross_linux_tree/usr \
32 // RUN: --target=i386-unknown-linux-gnu -m64 \
33 // RUN: | FileCheck --check-prefix=CHECK-X86-64 %s