2019-05-29 08:01:05 +08:00
|
|
|
// Test that -print-file-name finds the correct file.
|
|
|
|
|
2021-05-04 21:50:43 +08:00
|
|
|
// RUN: %clang -print-file-name=share/asan_ignorelist.txt 2>&1 \
|
2019-05-29 08:01:05 +08:00
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir \
|
2021-04-28 13:31:36 +08:00
|
|
|
// RUN: --target=x86_64-unknown-linux-gnu \
|
2019-05-29 08:01:05 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-RESOURCE-DIR %s
|
2021-05-04 21:50:43 +08:00
|
|
|
// CHECK-RESOURCE-DIR: resource_dir{{/|\\}}share{{/|\\}}asan_ignorelist.txt
|
2019-05-29 08:01:05 +08:00
|
|
|
|
|
|
|
// RUN: %clang -print-file-name=libclang_rt.builtins.a 2>&1 \
|
|
|
|
// RUN: -resource-dir=%S/Inputs/resource_dir_with_per_target_subdir \
|
2021-04-28 13:31:36 +08:00
|
|
|
// RUN: --target=x86_64-unknown-linux-gnu \
|
2019-05-29 08:01:05 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-COMPILER-RT %s
|
2021-04-28 13:31:36 +08:00
|
|
|
// CHECK-COMPILER-RT: resource_dir_with_per_target_subdir{{/|\\}}lib{{/|\\}}x86_64-unknown-linux-gnu{{/|\\}}libclang_rt.builtins.a
|
2019-05-29 08:01:05 +08:00
|
|
|
|
|
|
|
// RUN: %clang -print-file-name=include/c++/v1 2>&1 \
|
|
|
|
// RUN: -ccc-install-dir %S/Inputs/basic_linux_libcxx_tree/usr/bin \
|
2021-04-28 13:31:36 +08:00
|
|
|
// RUN: --target=x86_64-unknown-linux-gnu \
|
2019-05-29 08:01:05 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-INSTALL-DIR %s
|
2019-05-29 17:20:01 +08:00
|
|
|
// CHECK-INSTALL-DIR: basic_linux_libcxx_tree{{/|\\}}usr{{/|\\}}bin{{/|\\}}..{{/|\\}}include{{/|\\}}c++{{/|\\}}v1
|