Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / PCH / gch-probe.c
blob8b1e1fab5ad97b681a89790b59689feedd11928b
1 // For GCC compatibility, clang should probe also with the .gch extension.
2 // RUN: %clang -x c-header -c %s -o %t.h.gch
3 // RUN: %clang -fsyntax-only -include %t.h %s
5 // gch probing should ignore files which are not clang pch files.
6 // RUN: %clang -fsyntax-only -include %S/Inputs/gch-probe.h %s 2>&1 | FileCheck %s
7 // CHECK: warning: precompiled header '{{.*}}gch-probe.h.gch' was ignored because it is not a clang PCH file
9 void f(void);