mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-24 14:05:49 -04:00

The DiagnosticBuilder's lifetime in parser typo recovery was overlapping with the subsequent consume which can itself emit PP diagnostics. Patch by Olivier Goffart! llvm-svn: 201965
7 lines
240 B
C
7 lines
240 B
C
// 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}}
|