xref: /minix3/external/bsd/llvm/dist/clang/test/PCH/modified-header-crash.c (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1 // Don't crash.
2 
3 // RUN: cp %S/modified-header-crash.h %t.h
4 // RUN: %clang_cc1 -DCAKE -x c-header %t.h -emit-pch -o %t
5 // RUN: echo 'int foobar;' >> %t.h
6 // RUN: not %clang_cc1 %s -include-pch %t -fsyntax-only
7 
8 // FIXME: It is intended to suppress this on win32.
9 // REQUIRES: ansi-escape-sequences
10 
11 void f(void) {
12   foo = 3;
13 }
14