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