[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / darwin-print-file-name.c
blob91623a4c589f6084e129e8fbba364062928eec98
1 // Regression test. Previously Clang just returned the library name instead
2 // of the full path.
4 // RUN: %clang -print-file-name=libclang_rt.osx.a --target=x86_64-apple-darwin20.3.0 \
5 // RUN: -resource-dir=%S/Inputs/resource_dir \
6 // RUN: | FileCheck --check-prefix=PRINT-RUNTIME-DIR %s
8 // RUN: %clang -print-file-name=libclang_rt.osx.a --target=x86_64-apple-macosx11.0.0 \
9 // RUN: -resource-dir=%S/Inputs/resource_dir \
10 // RUN: | FileCheck --check-prefix=PRINT-RUNTIME-DIR %s
12 // PRINT-RUNTIME-DIR: lib{{/|\\}}darwin{{/|\\}}libclang_rt.osx.a
14 // RUN: %clang -print-file-name=libclang_rt.ios.a --target=arm64-apple-ios14.0.0 \
15 // RUN: -resource-dir=%S/Inputs/resource_dir \
16 // RUN: | FileCheck --check-prefix=PRINT-RUNTIME-DIR-IOS %s
17 // PRINT-RUNTIME-DIR-IOS: lib{{/|\\}}darwin{{/|\\}}libclang_rt.ios.a
19 // RUN: %clang -print-file-name=libclang_rt.tvos.a --target=arm64-apple-tvos14.0.0 \
20 // RUN: -resource-dir=%S/Inputs/resource_dir \
21 // RUN: | FileCheck --check-prefix=PRINT-RUNTIME-DIR-TVOS %s
22 // PRINT-RUNTIME-DIR-TVOS: lib{{/|\\}}darwin{{/|\\}}libclang_rt.tvos.a
24 // RUN: %clang -print-file-name=libclang_rt.watchos.a --target=arm64-apple-watchos5.0.0 \
25 // RUN: -resource-dir=%S/Inputs/resource_dir \
26 // RUN: | FileCheck --check-prefix=PRINT-RUNTIME-DIR-WATCHOS %s
27 // PRINT-RUNTIME-DIR-WATCHOS: lib{{/|\\}}darwin{{/|\\}}libclang_rt.watchos.a