Home | History | Annotate | Download | only in dcl.fct
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 
      3 struct A { };
      4 A::A (enum { e1 }) {} // expected-error{{cannot be defined in a parameter}}
      5 void A::f(enum { e2 }) {} // expected-error{{cannot be defined in a parameter}}
      6 
      7 enum { e3 } A::g() { } // expected-error{{cannot be defined in the result type}} \
      8 // expected-error{{out-of-line definition}}
      9