missing warnings on case value overflow #4779
Labels
bugzilla
Issues migrated from bugzilla
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
Extended Description
int test1(const char foo) {
int success = 0;
switch(foo[0]) {
case 1234: / XXX */
success = 1;
break;
default:
break;
}
return success;
}
int test2(const char foo) {
int success = 0;
switch (foo && foo[0]) { / XXX */
case 0:
success = 1;
break;
case 1:
break;
}
return success;
}
The text was updated successfully, but these errors were encountered: