while(structSx=s);// expected-error: {{expression must have bool type (or be convertible to bool) ('struct S' invalid)}}
switch(s){}// expected-error: {{statement requires expression of integer type ('struct S' invalid)}}
while(structS{}x=0);// expected-error: {{types may not be defined in conditions}} expected-error: {{incompatible type}} expected-error: {{expression must have bool type}}
while(struct{}x=0);// expected-error: {{types may not be defined in conditions}} expected-error: {{incompatible type}} expected-error: {{expression must have bool type}}
switch(enum{E}x=0);// expected-error: {{types may not be defined in conditions}}
if(intx=0){// expected-error: {{previous definition is here}}
intx;// expected-error: {{redefinition of 'x'}}
}
else
intx;// expected-error: {{redefinition of 'x'}}
while(intx=0)intx;// expected-error: {{redefinition of 'x'}} expected-error: {{previous definition is here}}
while(intx=0){intx;}// expected-error: {{redefinition of 'x'}} expected-error: {{previous definition is here}}
for(intx;intx=0;);// expected-error: {{redefinition of 'x'}} expected-error: {{previous definition is here}}
for(intx;;)intx;// expected-error: {{redefinition of 'x'}} expected-error: {{previous definition is here}}
for(;intx=0;)intx;// expected-error: {{redefinition of 'x'}} expected-error: {{previous definition is here}}
for(;intx=0;){intx;}// expected-error: {{redefinition of 'x'}} expected-error: {{previous definition is here}}
switch(intx=0){default:intx;}// expected-error: {{redefinition of 'x'}} expected-error: {{previous definition is here}}