1// RUN: %clang_cc1 -fsyntax-only -verify %s 2 3// PR6647 4class C { 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'}} 8}; 9 10typedef struct Inst { 11 void m(int x=0); 12} *InstPtr; 13 14struct X { 15 void f(int x = 1:); // expected-error {{unexpected end of default argument expression}} 16}; 17