Lines Matching full:enum
3 enum e {A,
7 enum f { a = -2147483648, b = 2147483647 }; // ok.
9 enum g { // too negative
12 enum h { e = -2147483648, // too pos
18 enum x // expected-warning {{enumeration values exceed range of largest integer}}
23 return sizeof(enum e) ;
26 enum gccForwardEnumExtension ve; // expected-warning{{ISO C forbids forward references to 'enum' types}} \
27 // expected-error{{tentative definition has type 'enum gccForwardEnumExtension' that is never completed}} \
28 // expected-note{{forward declaration of 'enum gccForwardEnumExtension'}}
37 enum u0 { U0A }; // expected-error {{use of 'u0' with tag type that does not match previous declaration}}
39 extern enum some_undefined_enum ve2; // expected-warning {{ISO C forbids forward references to 'enum' types}}
53 enum someenum {}; // expected-error {{use of empty enum}}
55 enum e0 { // expected-note {{previous definition is here}}
56 E0 = sizeof(enum e0 { E1 }), // expected-error {{nested redefinition}}
60 enum { PR3173A, PR3173B = PR3173A+50 };
64 enum xpto; // expected-warning{{ISO C forbids forward references to 'enum' types}}
65 enum xpto; // expected-warning{{ISO C forbids forward references to 'enum' types}}
68 typedef enum { X = 0 }; // expected-warning{{typedef requires a name}}
71 enum NotYetComplete { // expected-note{{definition of 'enum NotYetComplete' is not complete until the closing '}'}}
72 NYC1 = sizeof(enum NotYetComplete) // expected-error{{invalid application of 'sizeof' to an incomplete type 'enum NotYetComplete'}}
77 enum e1 (*bar)(void); // expected-warning{{ISO C forbids forward references to 'enum' types}}
80 enum e1 { YES, NO };
82 static enum e1 badfunc(struct s1 *q) {
88 typedef enum {
94 enum PR4515 {PR4515a=1u,PR4515b=(PR4515a-2)/2};
98 extern enum PR7911T PR7911V; // expected-warning{{ISO C forbids forward references to 'enum' types}}
111 void crash(enum E* e) // expected-warning {{declaration of 'enum E' will not be visible outside of this function}} \
112 // expected-warning {{ISO C forbids forward references to 'enum' types}}
114 PR8694(e); // expected-warning {{incompatible pointer types passing 'enum E *' to parameter of type 'int *'}}
117 typedef enum { NegativeShort = (short)-1 } NegativeShortEnum;
121 enum Color { Red, Green, Blue }; // expected-note{{previous use is here}}
137 typedef enum : unsigned char { Pink, Black, Cyan } Color; // pre-c23-warning {{enumeration types with a fixed underlying type are a C23 extension}}
142 enum {
143 PR28903_A = (enum {
153 enum {
159 enum {
164 enum PR15071 {
169 enum {
174 enum struct GH42372_1 { // expected-error {{expected identifier or '{'}}
180 // expected-error@+3 {{tentative definition has type 'enum class' that is never completed}}
181 // expected-warning@+2 {{ISO C forbids forward references to 'enum' types}}
182 // expected-note@+1 {{forward declaration of 'enum class'}}
183 enum class GH42372_2 {
187 enum IncOverflow {
195 enum GH59352 { // expected-warning {{enumeration values exceed range of largest integer}}
216 enum E1 {
220 enum E2 {
225 enum E3 {
230 enum E4 {
242 _Static_assert(_Generic((enum E4){}, unsigned int : 1));