1// RUN: %clang -x c-header %s -Weverything -o %t.h.pch 2// RUN: %clang -x c %s -w -include %t.h -fsyntax-only -Xclang -verify 3 4#ifndef HEADER 5#define HEADER 6 7extern int foo; 8 9#else 10 11void f() { 12 int a = foo; 13 // Make sure we parsed this by getting an error. 14 int b = bar; // expected-error {{undeclared}} 15} 16 17#endif 18