xref: /minix3/external/bsd/llvm/dist/clang/test/PCH/modified-header-crash.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
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 
f(void)11 void f(void) {
12   foo = 3;
13 }
14