llvm-for-llvmta/tools/clang/test/Parser/diag-crash.c

7 lines
240 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// 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}}