]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/PCH/modified-header-crash.c
Vendor import of clang trunk r338150:
[FreeBSD/FreeBSD.git] / test / PCH / modified-header-crash.c
1 // Don't crash.
2
3 // RUN: cat %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 }