blob: a5ae402353652d605012257218b9fcd142204cf3 [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
Argyrios Kyrtzidis8d8f2c22011-04-25 22:23:56 +00008void f(void) {
9 foo = 3;
10}