3 // RUN: mkdir -p %t.dir
4 // RUN: cp %s %t.dir/preprocess_minimized_pragmas_basic.cpp
5 // RUN: cp %s %t.dir/preprocess_minimized_pragmas_ms.cpp
6 // RUN: mkdir %t.dir/Inputs
7 // RUN: cp %S/Inputs/preprocess_minimized_pragmas.h %t.dir/Inputs/preprocess_minimized_pragmas.h
8 // RUN: touch %t.dir/Inputs/a.h
9 // RUN: touch %t.dir/Inputs/b.h
10 // RUN: touch %t.dir/Inputs/c.h
11 // RUN: touch %t.dir/Inputs/c_alias.h
12 // RUN: sed -e "s|DIR|%/t.dir|g" %S/Inputs/preprocess_minimized_pragmas_cdb.json > %t.cdb
14 // RUN: clang-scan-deps -compilation-database %t.cdb -j 1 -mode preprocess-dependency-directives | \
16 // RUN: clang-scan-deps -compilation-database %t.cdb -j 1 -mode preprocess | \
19 #include "preprocess_minimized_pragmas.h"
21 // CHECK: preprocess_minimized_pragmas_basic.cpp
22 // CHECK-NEXT: Inputs{{/|\\}}preprocess_minimized_pragmas.h
23 // CHECK-NEXT: Inputs{{/|\\}}a.h
24 // CHECK-NEXT: Inputs{{/|\\}}b.h
25 // Expect include aliasing alias "c_alias.h" -> "c.h" to fail when Microsoft extensions are off.
26 // CHECK-NEXT: Inputs{{/|\\}}c_alias.h
28 // CHECK: preprocess_minimized_pragmas_ms.cpp
29 // CHECK-NEXT: Inputs{{/|\\}}preprocess_minimized_pragmas.h
30 // CHECK-NEXT: Inputs{{/|\\}}a.h
31 // CHECK-NEXT: Inputs{{/|\\}}b.h
32 // CHECK-NEXT: Inputs{{/|\\}}c.h