URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [opt/] [switch2.C] - Rev 315
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do compile }
// { dg-options "-O2 -w" }
extern int foo (int);
void
bar (void)
{
char tmp = foo (0);
switch (tmp)
{
case 1: foo (1); break;
case 2: foo (2); break;
case 3: foo (3); break;
case 4: foo (4); break;
case 5: foo (5); break;
case 6: foo (6); break;
case 7: foo (7); break;
case 255: foo (8); break;
default: break;
}
}
Go to most recent revision | Compare with Previous | Blame | View Log