xref: /minix3/external/bsd/llvm/dist/clang/test/Parser/diag-crash.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify %s
2*0a6a1f1dSLionel Sambuc 
3*0a6a1f1dSLionel Sambuc // Avoid preprocessor diag crash caused by a parser diag left in flight.
4*0a6a1f1dSLionel Sambuc 
5*0a6a1f1dSLionel Sambuc int foo: // expected-error {{expected ';' after top level declarator}}
6*0a6a1f1dSLionel Sambuc #endif   // expected-error {{#endif without #if}}
7