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