brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 67096d3 Raw
33 lines · cpp
1// RUN: rm -rf %t.dir2// RUN: rm -rf %t.cdb3// RUN: mkdir -p %t.dir4// RUN: cp %s %t.dir/preprocess_minimized_pragmas_basic.cpp5// RUN: cp %s %t.dir/preprocess_minimized_pragmas_ms.cpp6// RUN: mkdir %t.dir/Inputs7// RUN: cp %S/Inputs/preprocess_minimized_pragmas.h %t.dir/Inputs/preprocess_minimized_pragmas.h8// RUN: touch %t.dir/Inputs/a.h9// RUN: touch %t.dir/Inputs/b.h10// RUN: touch %t.dir/Inputs/c.h11// RUN: touch %t.dir/Inputs/c_alias.h12// RUN: sed -e "s|DIR|%/t.dir|g" %S/Inputs/preprocess_minimized_pragmas_cdb.json > %t.cdb13//14// RUN: clang-scan-deps -compilation-database %t.cdb -j 1 -mode preprocess-dependency-directives | \15// RUN:   FileCheck %s16// RUN: clang-scan-deps -compilation-database %t.cdb -j 1 -mode preprocess | \17// RUN:   FileCheck %s18 19#include "preprocess_minimized_pragmas.h"20 21// CHECK: preprocess_minimized_pragmas_basic.cpp22// CHECK-NEXT: Inputs{{/|\\}}preprocess_minimized_pragmas.h23// CHECK-NEXT: Inputs{{/|\\}}a.h24// CHECK-NEXT: Inputs{{/|\\}}b.h25// Expect include aliasing alias "c_alias.h" -> "c.h" to fail when Microsoft extensions are off.26// CHECK-NEXT: Inputs{{/|\\}}c_alias.h27 28// CHECK: preprocess_minimized_pragmas_ms.cpp29// CHECK-NEXT: Inputs{{/|\\}}preprocess_minimized_pragmas.h30// CHECK-NEXT: Inputs{{/|\\}}a.h31// CHECK-NEXT: Inputs{{/|\\}}b.h32// CHECK-NEXT: Inputs{{/|\\}}c.h33