Argyrios Kyrtzidis | 8d8f2c2 | 2011-04-25 22:23:56 +0000 | [diff] [blame] | 1 | // Don't crash. |
2 | |||||
Matt Beaumont-Gay | b939625 | 2011-04-28 00:23:49 +0000 | [diff] [blame] | 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 >> %t.h | ||||
Argyrios Kyrtzidis | 8d8f2c2 | 2011-04-25 22:23:56 +0000 | [diff] [blame] | 6 | // RUN: not %clang_cc1 %s -include-pch %t -fsyntax-only |
7 | |||||
Argyrios Kyrtzidis | 8d8f2c2 | 2011-04-25 22:23:56 +0000 | [diff] [blame] | 8 | void f(void) { |
9 | foo = 3; | ||||
10 | } |