3 // RUN: mkdir -p %t.dir
4 // RUN: cp %s %t.dir/target-filename_input.cpp
5 // RUN: mkdir %t.dir/Inputs
6 // RUN: cp %S/Inputs/header.h %t.dir/Inputs/header.h
7 // RUN: sed -e "s|DIR|%/t.dir|g" %S/Inputs/target-filename-cdb.json > %t.cdb
8 // RUN: clang-scan-deps -compilation-database %t.cdb -j 1 | FileCheck %s
10 // CHECK: target-filename_input.o:
11 // CHECK-NEXT: target-filename_input.cpp
14 // CHECK-NEXT: target-filename_input.cpp
17 // CHECK-NEXT: target-filename_input.cpp
19 // CHECK-NEXT: last.o:
20 // CHECK-NEXT: target-filename_input.cpp
22 // CHECK: target-filename_input.o:
23 // CHECK-NEXT: target-filename_input.cpp
25 // CHECK-NEXT: clangcl-a.o:
26 // CHECK-NEXT: target-filename_input.cpp
28 // CHECK-NEXT: clangcl-b.o:
29 // CHECK-NEXT: target-filename_input.cpp
31 // CHECK-NEXT: clangcl-c.o:
32 // CHECK-NEXT: target-filename_input.cpp
34 // CHECK-NEXT: clangcl-d.o:
35 // CHECK-NEXT: target-filename_input.cpp
37 // CHECK-NEXT: clangcl-e.o:
38 // CHECK-NEXT: target-filename_input.cpp
40 // CHECK-NEXT: clangcl-lastf.o:
41 // CHECK-NEXT: target-filename_input.cpp
43 // CHECK-NEXT: clangcl-lastg.o:
44 // CHECK-NEXT: target-filename_input.cpp
46 // CHECK-NEXT: clangcl-lasth.o:
47 // CHECK-NEXT: target-filename_input.cpp