1 // RUN: %clang_cc1 -fsyntax-only -verify %s
5 // After the error, the rest of the tokens inside the default arg should be
6 // skipped, avoiding a "expected ';' after class" after 'undecl'.
7 void m(int x
= undecl
+ 0); // expected-error {{use of undeclared identifier 'undecl'}}
15 void f(int x
= 1:); // expected-error {{unexpected end of default argument expression}}