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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20001121-1.c] - Blame information for rev 299

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

Line No. Rev Author Line
1 297 jeremybenn
extern int bar(int);
2
 
3
int foo(int x)
4
{
5
  return 1 + bar(
6
        ({
7
                int y;
8
                switch (x)
9
                {
10
                case 0: y = 1; break;
11
                case 1: y = 2; break;
12
                case 2: y = 3; break;
13
                case 3: y = 4; break;
14
                case 4: y = 5; break;
15
                case 5: y = 6; break;
16
                default: y = 7; break;
17
                }
18
                y;
19
        })
20
     );
21
}

powered by: WebSVN 2.1.0

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