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 |
Douglas Gregor | f19b5c0 | 2012-12-11 22:31:46 +0000 | [diff] [blame] | 5 | // RUN: echo 'int foobar;' >> %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 | |
NAKAMURA Takumi | 0faaa16 | 2012-12-12 00:51:38 +0000 | [diff] [blame] | 8 | // FIXME: It is intended to suppress this on win32. |
| 9 | // REQUIRES: ansi-escape-sequences |
| 10 | |
Argyrios Kyrtzidis | 8d8f2c2 | 2011-04-25 22:23:56 +0000 | [diff] [blame] | 11 | void f(void) { |
| 12 | foo = 3; |
| 13 | } |