brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 91623a4 Raw
28 lines · c
1// Regression test. Previously Clang just returned the library name instead2// of the full path.3 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 %s7 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 %s11 12// PRINT-RUNTIME-DIR: lib{{/|\\}}darwin{{/|\\}}libclang_rt.osx.a13 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 %s17// PRINT-RUNTIME-DIR-IOS: lib{{/|\\}}darwin{{/|\\}}libclang_rt.ios.a18 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 %s22// PRINT-RUNTIME-DIR-TVOS: lib{{/|\\}}darwin{{/|\\}}libclang_rt.tvos.a23 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 %s27// PRINT-RUNTIME-DIR-WATCHOS: lib{{/|\\}}darwin{{/|\\}}libclang_rt.watchos.a28