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