brintos

brintos / llvm-project-archived public Read only

0
0
Text · 314 B · 7b9e51f Raw
9 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s2 3// This syntax error used to cause use-after free due to token local buffer4// in ParseCXXAmbiguousParenExpression.5int H((int()[)]);6// expected-error@-1 {{expected expression}}7// expected-error@-2 {{expected ']'}}8// expected-note@-3 {{to match this '['}}9