Home | History | Annotate | Download | only in Sema

Lines Matching full:case

10   case 42: ;                 // expected-note {{previous case}}
11 case 5000000000LL: // expected-warning {{overflow}}
12 case 42: // expected-error {{duplicate case value '42'}}
15 case 100 ... 99: ; // expected-warning {{empty case range}}
17 case 43: ; // expected-note {{previous case}}
18 case 43 ... 45: ; // expected-error {{duplicate case value}}
20 case 100 ... 20000:; // expected-note {{previous case}}
21 case 15000 ... 40000000:; // expected-error {{duplicate case value}}
27 switch (0); // expected-warning {{no case matching constant switch condition '0'}} \
38 case 0 && g():
39 case 1 || g():
44 case g(): // expected-error {{expression is not an integer constant expression}}
45 case 0 ... g(): // expected-error {{expression is not an integer constant expression}}
50 case 0 && g() ... 1 || g():
55 case g() // expected-error {{expression is not an integer constant expression}}
61 case 0 ...
70 default: // expected-note {{previous case defined here}}
79 case 1234: // expected-warning {{overflow converting case value}}
87 case 1:
89 case 2:
101 case A:
105 case B:
106 case A:
110 case A:
111 case B:
112 case 3: // expected-warning{{case value not in enumerated type 'enum <anonymous enum}}
116 case A:
117 case B:
118 case 3 ... //expected-warning{{case value not in enumerated type 'enum <anonymous enum}}
119 4: //expected-warning{{case value not in enumerated type 'enum <anonymous enum}}
123 case 1 ... 2:
127 case 0 ... 2: //expected-warning{{case value not in enumerated type 'enum <anonymous enum}}
131 case 1 ... 3: //expected-warning{{case value not in enumerated type 'enum <anonymous enum}}
135 case 0 ... //expected-warning{{case value not in enumerated type 'enum <anonymous enum}}
136 3: //expected-warning{{case value not in enumerated type 'enum <anonymous enum}}
149 case A:
150 case B:
154 case A:
155 case C:
159 case A:
170 case 0: //expected-warning{{case value not in enumerated type 'enum <anonymous enum}}
171 case 1:
172 case 2: //expected-warning{{case value not in enumerated type 'enum <anonymous enum}}
173 case 3:
174 case 4: //expected-warning{{case value not in enumerated type 'enum <anonymous enum}}
187 case 0 ... //expected-warning{{case value not in enumerated type 'enum <anonymous enum}}
188 1: //expected-warning{{case value not in enumerated type 'enum <anonymous enum}}
189 case 2 ... 4:
190 case 5 ... //expected-warning{{case value not in enumerated type 'enum <anonymous enum}}
191 9: //expected-warning{{case value not in enumerated type 'enum <anonymous enum}}
192 case 10 ... 12:
193 case 13 ... //expected-warning{{case value not in enumerated type 'enum <anonymous enum}}
194 16: //expected-warning{{case value not in enumerated type 'enum <anonymous enum}}
206 case B:
207 case C:
212 case B:
213 case C:
227 case A:
228 case B:
242 case val1:
244 case val2:
258 case EC0: return 0;
259 case EC1: return 1;
266 case -1: break;
273 switch (1) { // expected-warning {{no case matching constant switch condition '1'}}
274 case 0: i = 0; break;
275 case 2: i++; break;
281 switch (c) { // expected-warning {{no case matching constant switch condition '53'}}
282 case '6': return;
289 case 0: return;
293 case 0: return;
300 case A: return 0;
301 case B: return 1;
302 case 7: return 1; // expected-warning {{case value not in enumerated type}}
315 case kOne:
317 case 2: // expected-warning {{case value not in enumerated type 'Ints'}}
333 case 5: // expected-note {{previous case}}
334 case TEST19MACRO: // expected-error {{duplicate case value '5'}}
336 case 7: // expected-note {{previous case}}
337 case kTest19Enum1: // expected-error {{duplicate case value: '7' and 'kTest19Enum1' both equal '7'}} \
338 // expected-note {{previous case}}
339 case kTest19Enum1: // expected-error {{duplicate case value 'kTest19Enum1'}} \
340 // expected-note {{previous case}}
341 case kTest19Enum2: // expected-error {{duplicate case value: 'kTest19Enum1' and 'kTest19Enum2' both equal '7'}} \
342 // expected-note {{previous case}}
343 case (int)kTest19Enum2: //expected-error {{duplicate case value 'kTest19Enum2'}}
345 case 3: // expected-note {{previous case}}
346 case a: // expected-error {{duplicate case value: '3' and 'a' both equal '3'}} \
347 // expected-note {{previous case}}
348 case a: // expected-error {{duplicate case value 'a'}}