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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [20021116-1.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile { target fpic } } */
2
/* { dg-options "-O2 -fpic" } */
3
 
4
void **
5
foo (void **x, int y, void *z)
6
{
7
  switch (y)
8
    {
9
    case 162:
10
      *x = z;
11
      break;
12
    case 164:
13
      *x = z;
14
      break;
15
    case 165:
16
      *x = z;
17
      break;
18
    case 166:
19
      *x = z;
20
      break;
21
    case 163:
22
      *x = z;
23
      break;
24
    default:
25
      goto out;
26
    }
27
  return x;
28
 
29
out:
30
  return (void **) 0;
31
}

powered by: WebSVN 2.1.0

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