2011-04-26 06:23:56 +08:00
|
|
|
// Don't crash.
|
|
|
|
|
2011-04-28 08:23:49 +08:00
|
|
|
// RUN: cp %S/modified-header-crash.h %t.h
|
|
|
|
// RUN: %clang_cc1 -DCAKE -x c-header %t.h -emit-pch -o %t
|
2012-12-12 06:31:46 +08:00
|
|
|
// RUN: echo 'int foobar;' >> %t.h
|
2011-04-26 06:23:56 +08:00
|
|
|
// RUN: not %clang_cc1 %s -include-pch %t -fsyntax-only
|
|
|
|
|
2012-12-12 08:51:38 +08:00
|
|
|
// FIXME: It is intended to suppress this on win32.
|
|
|
|
// REQUIRES: ansi-escape-sequences
|
|
|
|
|
2011-04-26 06:23:56 +08:00
|
|
|
void f(void) {
|
|
|
|
foo = 3;
|
|
|
|
}
|