1 // RUN: clang-cc -fsyntax-only -verify %s
7 int& enumerator_type(int);
8 float& enumerator_type(E
);
12 float& fr
= enumerator_type(Val2
);
15 // <rdar://problem/6502934>
29 enum e1 (*bar
)(void); // expected-error{{ISO C++ forbids forward references to 'enum' types}} expected-note{{forward declaration of 'enum s1::e1'}}
34 static enum e1
badfunc(struct s1
*q
) {
35 return q
->bar(); // expected-error{{return type of called function ('enum s1::e1') is incomplete}}
38 enum e2
; // expected-error{{ISO C++ forbids forward references to 'enum' types}}