summaryrefslogtreecommitdiff
path: root/clang/test/PCH/modified-header-crash.c
blob: c74ce2239c22ddc3826763a317b726ee636a4b96 (about) (plain)
1
2
3
4
5
6
7
8
9
10
// Don't crash.

// RUN: cp %S/modified-header-crash.h %t.h
// RUN: %clang_cc1 -DCAKE -x c-header %t.h -emit-pch -o %t
// RUN: echo >> %t.h
// RUN: not %clang_cc1 %s -include-pch %t -fsyntax-only

void f(void) {
  foo = 3;
}