blob: bf335957e6046dca1df75bb406e0780febe2e81b [file] [log] [blame]
/* { dg-do run } */
extern "C" void abort (void);
int
main (void)
{
int i = -1;
switch ((signed char) i)
{
case 255: /* { dg-warning "exceeds maximum value" } */
abort ();
default:
break;
}
}