Mercurial > hg > CbC > CbC_llvm
comparison clang/test/ClangScanDeps/symlink.cpp @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | c4bab56944e8 |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 // REQUIRES: shell | |
2 // RUN: rm -rf %t.dir | |
3 // RUN: rm -rf %t.cdb | |
4 // RUN: mkdir -p %t.dir | |
5 // RUN: cp %s %t.dir/symlink_input.cpp | |
6 // RUN: cp %s %t.dir/symlink_input2.cpp | |
7 // RUN: mkdir %t.dir/Inputs | |
8 // RUN: cp %S/Inputs/header.h %t.dir/Inputs/header.h | |
9 // RUN: ln -s %t.dir/Inputs/header.h %t.dir/Inputs/symlink.h | |
10 // RUN: sed -e "s|DIR|%/t.dir|g" %S/Inputs/symlink_cdb.json > %t.cdb | |
11 // RUN: clang-scan-deps -compilation-database %t.cdb -j 1 -reuse-filemanager=0 | FileCheck %s | |
12 // RUN: clang-scan-deps -compilation-database %t.cdb -j 1 -reuse-filemanager=1 | FileCheck %s | |
13 | |
14 #include "symlink.h" | |
15 #include "header.h" | |
16 | |
17 // CHECK: symlink_input.cpp | |
18 // CHECK-NEXT: Inputs{{/|\\}}symlink.h | |
19 // CHECK-NEXT: Inputs{{/|\\}}header.h | |
20 | |
21 // CHECK: symlink_input2.cpp | |
22 // CHECK-NEXT: Inputs{{/|\\}}symlink.h | |
23 // CHECK-NEXT: Inputs{{/|\\}}header.h |