[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / ClangScanDeps / relative_directory.cpp
blob495867467f6e1142f3d57fb60e34afde61341959
1 // UNSUPPORTED: target={{.*}}-aix{{.*}}
3 // RUN: rm -rf %t.dir
4 // RUN: rm -rf %t.cdb
5 // RUN: mkdir -p %t.dir
6 // RUN: mkdir %t.dir/Inputs
7 // RUN: cp %s %t.dir/Inputs/relative_directory_input1.cpp
8 // RUN: cp %s %t.dir/Inputs/relative_directory_input2.cpp
9 // RUN: touch %t.dir/Inputs/header.h
10 // RUN: sed -e "s|DIR|%/t.dir|g" %S/Inputs/relative_directory.json > %t.cdb
12 // RUN: clang-scan-deps -compilation-database %t.cdb -j 1 | FileCheck --check-prefixes=CHECK1,CHECK2 %s
14 // The output order is non-deterministic when using more than one thread,
15 // so check the output using two runs.
16 // RUN: clang-scan-deps -compilation-database %t.cdb -j 2 | FileCheck --check-prefix=CHECK1 %s
17 // RUN: clang-scan-deps -compilation-database %t.cdb -j 2 | FileCheck --check-prefix=CHECK2 %s
19 #include <header.h>
21 // CHECK1: relative_directory_input1.o:
22 // CHECK1-NEXT: relative_directory_input1.cpp
23 // CHECK1-NEXT: header.h
25 // CHECK2: relative_directory_input2.o:
26 // CHECK2-NEXT: relative_directory_input2.cpp
27 // CHECK2-NEXT: header.h