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.target/] [mips/] [pr33755.c] - Blame information for rev 378

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

Line No. Rev Author Line
1 321 jeremybenn
/* { dg-do link } */
2
/* { dg-options "-O2" } */
3
 
4
volatile int gv;
5
const char *ptrs[2];
6
 
7
void
8
foo (volatile int *v, const char **ptrs)
9
{
10
  switch (*v & 1)
11
    {
12
    case 0:
13
      ptrs[0] = 0;
14
      break;
15
    case 1:
16
      break;
17
    default:
18
      ptrs[1] = "Some text";
19
      break;
20
    }
21
  while (*v > 0)
22
    *v -= 1;
23
}
24
 
25
int
26
main (void)
27
{
28
  foo (&gv, ptrs);
29
  return 0;
30
}

powered by: WebSVN 2.1.0

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