1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 3 struct A { }; A(enum{ e1 })4A::A (enum { e1 }) {} // expected-error{{can not be defined in a parameter}} \ 5 // expected-error{{out-of-line definition}} f(enum{ e2 })6void 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