diff options
Diffstat (limited to 'test/PCH/modified-header-crash.c')
-rw-r--r-- | test/PCH/modified-header-crash.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/PCH/modified-header-crash.c b/test/PCH/modified-header-crash.c new file mode 100644 index 0000000000..0b6dc7aaf0 --- /dev/null +++ b/test/PCH/modified-header-crash.c @@ -0,0 +1,9 @@ +// Don't crash. + +// RUN: %clang_cc1 -DCAKE -x c-header %S/modified-header-crash.h -emit-pch -o %t +// RUN: touch %S/modified-header-crash.h +// RUN: not %clang_cc1 %s -include-pch %t -fsyntax-only + +void f(void) { + foo = 3; +} |