summaryrefslogtreecommitdiffstats
path: root/test/PCH/modified-header-crash.c
blob: 39b2530a32f28fd890184a3c90d3a2bf0bc9a75c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Don't crash.

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

// FIXME: It is intended to suppress this on win32.
// REQUIRES: ansi-escape-sequences

void f(void) {
  foo = 3;
}