URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [switch-warn-2.c] - Rev 455
Go to most recent revision | Compare with Previous | Blame | View Log
/* This should not warn about the case label being out of range. */ /* { dg-do run } */ /* { dg-options "-O0" } */ extern void abort (void); extern void exit (int); int foo (unsigned int i) { switch (i) { case 123456123456ULL: /* { dg-warning "large integer implicitly truncated to unsigned type" } */ return 0; default: return 3; } } int main (void) { if (foo (10) != 3) abort (); exit (0); }
Go to most recent revision | Compare with Previous | Blame | View Log