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