blob: 4c21a8c2b82597fc8898be8602552286e8a34efd [file] [log] [blame]
Argyrios Kyrtzidis8d8f2c22011-04-25 22:23:56 +00001// Don't crash.
2
Matt Beaumont-Gayb9396252011-04-28 00:23:49 +00003// RUN: cp %S/modified-header-crash.h %t.h
4// RUN: %clang_cc1 -DCAKE -x c-header %t.h -emit-pch -o %t
Douglas Gregorf19b5c02012-12-11 22:31:46 +00005// RUN: echo 'int foobar;' >> %t.h
Argyrios Kyrtzidis8d8f2c22011-04-25 22:23:56 +00006// RUN: not %clang_cc1 %s -include-pch %t -fsyntax-only
7
NAKAMURA Takumi0faaa162012-12-12 00:51:38 +00008// FIXME: It is intended to suppress this on win32.
9// REQUIRES: ansi-escape-sequences
10
Argyrios Kyrtzidis8d8f2c22011-04-25 22:23:56 +000011void f(void) {
12 foo = 3;
13}