• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s
2 
3 // This syntax error used to cause use-after free due to token local buffer
4 // in ParseCXXAmbiguousParenExpression.
5 int H((int()[)]);
6 // expected-error@-1 {{expected expression}}
7 // expected-error@-2 {{expected ']'}}
8 // expected-note@-3 {{to match this '['}}
9 // expected-error@-4 {{expected ';' after top level declarator}}
10