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