annotate clang/test/Driver/print-file-name.c @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +0900
parents 79ff65ed7e25
children 1f2b6ac9f198
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // Test that -print-file-name finds the correct file.
anatofuz
parents:
diff changeset
2
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
3 // RUN: %clang -print-file-name=share/asan_ignorelist.txt 2>&1 \
150
anatofuz
parents:
diff changeset
4 // RUN: -resource-dir=%S/Inputs/resource_dir \
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
5 // RUN: --target=x86_64-unknown-linux-gnu \
150
anatofuz
parents:
diff changeset
6 // RUN: | FileCheck --check-prefix=CHECK-RESOURCE-DIR %s
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
7 // CHECK-RESOURCE-DIR: resource_dir{{/|\\}}share{{/|\\}}asan_ignorelist.txt
150
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 // RUN: %clang -print-file-name=libclang_rt.builtins.a 2>&1 \
anatofuz
parents:
diff changeset
10 // RUN: -resource-dir=%S/Inputs/resource_dir_with_per_target_subdir \
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
11 // RUN: --target=x86_64-unknown-linux-gnu \
150
anatofuz
parents:
diff changeset
12 // RUN: | FileCheck --check-prefix=CHECK-COMPILER-RT %s
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
13 // CHECK-COMPILER-RT: resource_dir_with_per_target_subdir{{/|\\}}lib{{/|\\}}x86_64-unknown-linux-gnu{{/|\\}}libclang_rt.builtins.a
150
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 // RUN: %clang -print-file-name=include/c++/v1 2>&1 \
anatofuz
parents:
diff changeset
16 // RUN: -ccc-install-dir %S/Inputs/basic_linux_libcxx_tree/usr/bin \
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
17 // RUN: --target=x86_64-unknown-linux-gnu \
150
anatofuz
parents:
diff changeset
18 // RUN: | FileCheck --check-prefix=CHECK-INSTALL-DIR %s
anatofuz
parents:
diff changeset
19 // CHECK-INSTALL-DIR: basic_linux_libcxx_tree{{/|\\}}usr{{/|\\}}bin{{/|\\}}..{{/|\\}}include{{/|\\}}c++{{/|\\}}v1