2 // RUN: rm -rf %t.dir/foodir
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
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