diff options
Diffstat (limited to 'test/Parser/diag-crash.c')
-rw-r--r-- | test/Parser/diag-crash.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Parser/diag-crash.c b/test/Parser/diag-crash.c new file mode 100644 index 000000000000..4f1265f2b9c3 --- /dev/null +++ b/test/Parser/diag-crash.c @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s + +// Avoid preprocessor diag crash caused by a parser diag left in flight. + +int foo: // expected-error {{expected ';' after top level declarator}} +#endif // expected-error {{#endif without #if}} |