[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / arm-float-abi-runtime-path.c
blob029fe19690f9b6890044edff43ceb43fde92cec8
1 /// Check that libraries built with the per target runtime directory layout
2 /// are selected correctly when using variations of Arm triples.
4 // RUN: %clang %s --target=arm-unknown-linux-gnueabihf -print-runtime-dir \
5 // RUN: -resource-dir=%S/Inputs/arm_float_abi_runtime_path 2>&1 | FileCheck -check-prefix=ARMHF %s
6 /// "armv7l" should be normalised to just "arm".
7 // RUN: %clang %s --target=armv7l-unknown-linux-gnueabihf -print-runtime-dir \
8 // RUN: -resource-dir=%S/Inputs/arm_float_abi_runtime_path 2>&1 | FileCheck -check-prefix=ARMHF %s
10 // RUN: %clang %s --target=arm-unknown-linux-gnueabi -print-runtime-dir \
11 // RUN: -resource-dir=%S/Inputs/arm_float_abi_runtime_path 2>&1 | FileCheck -check-prefix=ARM %s
12 // RUN: %clang %s --target=armv7l-unknown-linux-gnueabi -print-runtime-dir \
13 // RUN: -resource-dir=%S/Inputs/arm_float_abi_runtime_path 2>&1 | FileCheck -check-prefix=ARM %s
15 /// armeb triples should be unmodified.
16 // RUN: %clang %s --target=armeb-unknown-linux-gnueabihf -print-runtime-dir \
17 // RUN: -resource-dir=%S/Inputs/arm_float_abi_runtime_path 2>&1 | FileCheck -check-prefix=ARMEBHF %s
18 // RUN: %clang %s --target=armeb-unknown-linux-gnueabi -print-runtime-dir \
19 // RUN: -resource-dir=%S/Inputs/arm_float_abi_runtime_path 2>&1 | FileCheck -check-prefix=ARMEB %s
21 // RUN: %clang %s --target=arm-pc-windows-msvc -print-runtime-dir \
22 // RUN: -resource-dir=%S/Inputs/arm_float_abi_runtime_path 2>&1 | FileCheck -check-prefix=WINDOWS %s
23 /// armhf-pc... isn't recognised so just check that the float-abi option is ignored
24 // RUN: %clang %s --target=arm-pc-windows-msvc -mfloat-abi=hard -print-runtime-dir \
25 // RUN: -resource-dir=%S/Inputs/arm_float_abi_runtime_path 2>&1 | FileCheck -check-prefix=WINDOWS %s
27 // ARMHF: lib{{/|\\}}arm-unknown-linux-gnueabihf{{$}}
28 // ARM: lib{{/|\\}}arm-unknown-linux-gnueabi{{$}}
29 // ARMEBHF: lib{{/|\\}}armeb-unknown-linux-gnueabihf{{$}}
30 // ARMEB: lib{{/|\\}}armeb-unknown-linux-gnueabi{{$}}
31 // WINDOWS: lib{{/|\\}}arm-pc-windows-msvc{{$}}