[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / ClangScanDeps / headerwithdirname.cpp
blob02b03926c553a3eca419f96d93b6754abfa2a06e
1 // RUN: rm -rf %t.dir
2 // RUN: rm -rf %t.dir/foodir
3 // RUN: rm -rf %t.cdb
4 // RUN: mkdir -p %t.dir
5 // RUN: mkdir -p %t.dir/foodir
6 // RUN: cp %s %t.dir/headerwithdirname_input.cpp
7 // RUN: cp %s %t.dir/headerwithdirname_input_clangcl.cpp
8 // RUN: mkdir %t.dir/Inputs
9 // RUN: cp %S/Inputs/foodir %t.dir/Inputs/foodir
10 // RUN: sed -e "s|DIR|%/t.dir|g" %S/Inputs/headerwithdirname.json > %t.cdb
12 // RUN: clang-scan-deps -compilation-database %t.cdb -j 1 | FileCheck %s
14 #include <foodir>
16 // CHECK: headerwithdirname_input{{\.o|.*\.s}}
17 // CHECK-NEXT: headerwithdirname_input.cpp
18 // CHECK-NEXT: Inputs{{/|\\}}foodir
20 // CHECK: headerwithdirname_input_clangcl.o
21 // CHECK-NEXT: headerwithdirname_input_clangcl.cpp
22 // CHECK-NEXT: Inputs{{/|\\}}foodir