Lines Matching full:enum
7 enum E { // expected-note{{previous definition is here}}
12 enum E; // expected-warning{{redeclaration of already-defined enum 'E' is a GNU extension}}
22 typedef enum Foo {
34 enum e1 (*bar)(void); // expected-error{{ISO C++ forbids forward references to 'enum' types}}
37 enum e1 { YES, NO };
39 static enum e1 badfunc(struct s1 *q) {
43 enum e2; // expected-error{{ISO C++ forbids forward references to 'enum' types}}
49 enum enum0 { v0 };
52 enum enum1 { v1 = __INT_MAX__ };
55 enum enum2 { v2 = __INT_MAX__ * 2U };
58 enum enum3 { v3 = __LONG_MAX__ };
61 enum enum4 { v4 = __LONG_MAX__ * 2UL };
67 struct A { enum { id }; };
68 struct B { enum { id }; };
72 enum { id };
77 enum a { A }; a x(const enum a x) { return 1?x:A; }
81 enum E { e0 };
90 enum { }; // expected-warning{{declaration does not declare anything}}
91 typedef enum { }; // expected-warning{{typedef requires a name}}
94 enum PR7921E { // expected-note {{not complete until the closing '}'}}
99 enum E; // expected-error{{ISO C++ forbids forward references to 'enum' types}} expected-note {{forward declaration}}
105 enum { overflow = 123456 * 234567 };
111 enum { overflow_shift = 1 << 32 };
116 enum NoFold : int { overflow2 = 123456 * 234567 };
126 enum : int { overflow2_shift = 1 << 32 };
139 enum {
140 PR28903_A = (enum { // expected-error-re {{'PR28903::(unnamed enum at {{.*}})' cannot be defined in an enumeration}}
149 enum E { e = 0 };
150 void f(int, enum E;); // expected-error {{ISO C++ forbids forward references to 'enum' types}} \