[RISCV] Add shrinkwrap test cases showing gaps in current impl
[llvm-project.git] / clang / test / ClangScanDeps / headerwithdirnamefollowedbyinclude.cpp
blobf67b12787bd77dabb30a9c077eff7fe29a12cf7f
1 // RUN: rm -rf %t.dir
2 // RUN: rm -rf %t.dir/foodir
3 // RUN: rm -rf %t.cdb
5 // RUN: mkdir -p %t.dir
6 // RUN: mkdir -p %t.dir/foodir
8 // RUN: cp %S/Inputs/header.h %t.dir/foodir/foodirheader.h
9 // RUN: cp %s %t.dir/headerwithdirname_input.cpp
10 // RUN: cp %s %t.dir/headerwithdirname_input_clangcl.cpp
11 // RUN: mkdir %t.dir/Inputs
12 // RUN: cp %S/Inputs/foodir %t.dir/Inputs/foodir
13 // RUN: sed -e "s|DIR|%/t.dir|g" %S/Inputs/headerwithdirnamefollowedbyinclude.json > %t.cdb
15 // RUN: clang-scan-deps -compilation-database %t.cdb -j 1 | FileCheck %s
17 #include <foodir>
18 #include "foodir/foodirheader.h"
20 // CHECK: headerwithdirname_input{{\.o|.*\.s}}
21 // CHECK-NEXT: headerwithdirname_input.cpp
22 // CHECK-NEXT: Inputs{{/|\\}}foodir
24 // CHECK: headerwithdirname_input_clangcl.o
25 // CHECK-NEXT: headerwithdirname_input_clangcl.cpp
26 // CHECK-NEXT: Inputs{{/|\\}}foodir