Lines Matching full:expected
7 switch (a) { // expected-error{{use of undeclared identifier 'a'}} in foo()
13 case 17 // expected-error{{expected ':' after 'case'}} in foo()
16 default // expected-error{{expected ':' after 'default'}} in foo()
24 switch (x) { // expected-warning {{enumeration value 'Xb' not handled in switch}} in test2()
25 case Xa; // expected-error {{expected ':' after 'case'}} in test2()
30 default; // expected-error {{expected ':' after 'default'}} in test2()
38 2: return 1; // expected-error {{expected 'case' keyword before expression}} in test3()
46 1: return -1; // expected-error {{expected 'case' keyword before expression}} in test4()
54 4:5:6:7: return 2; // expected-error 4{{expected 'case' keyword before expression}} in test5()
72 5: // expected-error {{expected 'case' keyword before expression}} in test6()
80 true ? 1 : 2: // expected-error {{expected 'case' keyword before expression}} in test7()
82 14 ? 3 : 4; // expected-warning {{expression result unused}} in test7()
98 void test9(int x) { // expected-note {{'x' declared here}} in test9()
101 2: case; // expected-error {{expected 'case' keyword before expression}} \ in test9()
102 expected-error {{expected expression}} in test9()
103 4:5:6: return; // expected-error 3{{expected 'case' keyword before expression}} in test9()
104 7: :x; // expected-error {{expected 'case' keyword before expression}} \ in test9()
105 expected-error {{expected expression}} in test9()
106 8:: x; // expected-error {{expected ';' after expression}} \ in test9()
107 … expected-error {{no member named 'x' in the global namespace; did you mean simply 'x'?}} \ in test9()
108 expected-warning 2 {{expression result unused}} in test9()
109 9:: :y; // expected-error {{expected ';' after expression}} \ in test9()
110 expected-error {{expected unqualified-id}} \ in test9()
111 expected-warning {{expression result unused}} in test9()
112 :; // expected-error {{expected expression}} in test9()
113 ::; // expected-error {{expected unqualified-id}} in test9()
122 2: y++; // expected-error {{expected ';' after expression}} \ in test10()
123 // expected-warning {{expression result unused}} in test10()
139 E+1: break; // expected-error {{expected 'case' keyword before expression}} in f()
146 0: // expected-error {{expected 'case' keyword before expression}} in test12()
148 1: // expected-error {{expected 'case' keyword before expression}} in test12()
150 2: // expected-error {{expected 'case' keyword before expression}} in test12()
152 3: // expected-error {{expected 'case' keyword before expression}} in test12()
163 case 0: // expected-error {{label at end of compound statement: expected statement}} in missing_statement_case()
170 default: // expected-error {{label at end of compound statement: expected statement}} in missing_statement_default()
175 switch (int x) // expected-error {{variable declaration in condition must have an initializer}} in pr19022_1()
176 case v: ; // expected-error {{use of undeclared identifier 'v'}} in pr19022_1()
181 case 1 // expected-error{{expected ':' after 'case'}} \ in pr19022_1a()
182 // expected-error{{label at end of compound statement: expected statement}} in pr19022_1a()
188 case v // expected-error{{use of undeclared identifier 'v'}}
193 switch (int x) // expected-error {{variable declaration in condition must have an initializer}}
194 case v1: case v2: ; // expected-error {{use of undeclared identifier 'v1'}} \
195 // expected-error {{use of undeclared identifier 'v2'}}
200 case 1: case v2: ; // expected-error {{use of undeclared identifier 'v2'}}
205 case 1 // expected-error{{expected ':' after 'case'}} expected-note{{previous case defined here}}
206 case 1 : return x; // expected-error{{duplicate case value '1'}}
213 } // expected-error{{expected expression}}
219 switch (int foo0) //expected-error{{variable declaration in condition must have an initializer}}
220 case bar5: ; // expected-error{{use of undeclared identifier 'bar5'}}
227 switch (0 // expected-note{{to match this '('}}
228 { // expected-error{{expected ')'}}
230 } // expected-error{{expected statement}}