OpenCores
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/] [pr9365-1.c] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* PR target/9365
2
 * Origin: marcus@mc.pp.se
3
 * Testcase tweaked by dank@kegel.com
4
 * gcc 3.4 coverage by joern.rennecke@superh.com
5
 * [3.3 regression] [SH] segfault in gen_far_branch (config/sh/sh.c)
6
 * ice-on-valid-code
7
 * Not marked as xfail since it's a regression
8
*/
9
/* { dg-do compile } */
10
/* { dg-options "-O2 -fomit-frame-pointer" } */
11
 
12
 
13
void foo(int n, int *p)
14
{
15
        switch(n) {
16
        case 100: case 110: case 120: case 130: case 140: case 150: case 160:
17
        case 200: case 210: case 220: case 230: case 240: case 250: case 260:
18
        case 300: case 310: case 320: case 330: case 340: case 350: case 360:
19
        case 400: case 410: case 420: case 430: case 440: case 450: case 460:
20
        case 500: case 510: case 520: case 530: case 540: case 550: case 560:
21
        case 600: case 610: case 620: case 630: case 640: case 650: case 660:
22
        case 700: case 710: case 720: case 730: case 740: case 750: case 760:
23
        case 800: case 810: case 820: case 830: case 840: case 850: case 860:
24
        case 900: case 910: case 920: case 930: case 940: case 950: case 960:
25
                break;
26
        default:
27
                *p = n;
28
                break;
29
        }
30
}
31
 
32
int main(int argc, char **argv)
33
{
34
        int p;
35
 
36
        (void) argv;
37
 
38
        foo(argc, &p);
39
 
40
        return p;
41
}

powered by: WebSVN 2.1.0

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