Lines Matching full:enum

1 // RUN: %clang_cc1 -fsyntax-only -verify -Wswitch-enum -Wcovered-switch-default -triple x86_64-linux-gnu %s
2 // RUN: %clang_cc1 -fsyntax-only -verify -Wswitch-enum -Wcovered-switch-default -triple x86_64-linux-gnu %s -fexperimental-new-constant-interpreter
97 enum {
113 case 3: // expected-warning{{case value not in enumerated type 'enum (unnamed enum}}
119 case 3 ... //expected-warning{{case value not in enumerated type 'enum (unnamed enum}}
120 4: //expected-warning{{case value not in enumerated type 'enum (unnamed enum}}
128 case 0 ... 2: //expected-warning{{case value not in enumerated type 'enum (unnamed enum}}
132 case 1 ... 3: //expected-warning{{case value not in enumerated type 'enum (unnamed enum}}
136 case 0 ... //expected-warning{{case value not in enumerated type 'enum (unnamed enum}}
137 3: //expected-warning{{case value not in enumerated type 'enum (unnamed enum}}
144 enum {
166 enum {
171 case 0: //expected-warning{{case value not in enumerated type 'enum (unnamed enum}}
173 case 2: //expected-warning{{case value not in enumerated type 'enum (unnamed enum}}
175 case 4: //expected-warning{{case value not in enumerated type 'enum (unnamed enum}}
181 enum {
188 case 0 ... //expected-warning{{case value not in enumerated type 'enum (unnamed enum}}
189 1: //expected-warning{{case value not in enumerated type 'enum (unnamed enum}}
191 case 5 ... //expected-warning{{case value not in enumerated type 'enum (unnamed enum}}
192 9: //expected-warning{{case value not in enumerated type 'enum (unnamed enum}}
194 case 13 ... //expected-warning{{case value not in enumerated type 'enum (unnamed enum}}
195 16: //expected-warning{{case value not in enumerated type 'enum (unnamed enum}}
201 enum {
223 enum {
234 typedef enum {
250 enum {
308 enum { A, B } a;
317 typedef enum {
336 enum {
365 // If 'case' expression refers to a static const variable of the correct enum
368 enum ExtendedEnum1 {
373 enum ExtendedEnum1_unrelated { EE1_misc };
375 static const enum ExtendedEnum1 EE1_c = 100;
376 static const enum ExtendedEnum1_unrelated EE1_d = 101;
378 void switch_on_ExtendedEnum1(enum ExtendedEnum1 e) {
383 case EE1_d: break; // expected-warning {{case value not in enumerated type 'enum ExtendedEnum1'}}
384 // expected-warning@-1 {{comparison of different enumeration types in switch statement ('enum ExtendedEnum1' and 'enum ExtendedEnum1_unrelated')}}