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{{can not be defined in a parameter}} \
      5 // expected-error{{out-of-line definition}}
      6 void A::f(enum { e2 }) {} // expected-error{{can not be defined in a parameter}} \
      7 // expected-error{{out-of-line definition}}
      8 
      9 enum { e3 } A::g() { } // expected-error{{can not be defined in the result type}} \
     10 // expected-error{{out-of-line definition}}
     11