OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [opt/] [switch2.C] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-O2 -w" }
3
 
4
extern int foo (int);
5
 
6
void
7
bar (void)
8
{
9
  char tmp = foo (0);
10
  switch (tmp)
11
    {
12
    case 1: foo (1); break;
13
    case 2: foo (2); break;
14
    case 3: foo (3); break;
15
    case 4: foo (4); break;
16
    case 5: foo (5); break;
17
    case 6: foo (6); break;
18
    case 7: foo (7); break;
19
    case 255: foo (8); break;
20
    default: break;
21
    }
22
}
23
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.