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 | 0cd7be4 | 2011-04-26 16:49:25 +0000 | [diff] [blame] | 8 | // FIXME: On Windows we don't detect that the header was modified ? |
| 9 | // XFAIL: win32 |
| 10 | |
Argyrios Kyrtzidis | 8d8f2c2 | 2011-04-25 22:23:56 +0000 | [diff] [blame] | 11 | void f(void) { |
| 12 | foo = 3; |
| 13 | } |