[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Driver / print-file-name.c
blobd6dd7a8a57c874c98888dcd93d69289c07c0bdfa
1 // Test that -print-file-name finds the correct file.
3 // RUN: %clang -print-file-name=share/asan_ignorelist.txt 2>&1 \
4 // RUN: -resource-dir=%S/Inputs/resource_dir \
5 // RUN: --target=x86_64-unknown-linux-gnu \
6 // RUN: | FileCheck --check-prefix=CHECK-RESOURCE-DIR %s
7 // CHECK-RESOURCE-DIR: resource_dir{{/|\\}}share{{/|\\}}asan_ignorelist.txt
9 // RUN: %clang -print-file-name=libclang_rt.builtins.a 2>&1 \
10 // RUN: -resource-dir=%S/Inputs/resource_dir_with_per_target_subdir \
11 // RUN: --target=x86_64-unknown-linux-gnu \
12 // RUN: | FileCheck --check-prefix=CHECK-COMPILER-RT %s
13 // CHECK-COMPILER-RT: resource_dir_with_per_target_subdir{{/|\\}}lib{{/|\\}}x86_64-unknown-linux-gnu{{/|\\}}libclang_rt.builtins.a
15 // RUN: %clang -print-file-name=include/c++/v1 2>&1 \
16 // RUN: -ccc-install-dir %S/Inputs/basic_linux_libcxx_tree/usr/bin \
17 // RUN: --target=x86_64-unknown-linux-gnu \
18 // RUN: | FileCheck --check-prefix=CHECK-INSTALL-DIR %s
19 // CHECK-INSTALL-DIR: basic_linux_libcxx_tree{{/|\\}}usr{{/|\\}}bin{{/|\\}}..{{/|\\}}include{{/|\\}}c++{{/|\\}}v1