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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [20030213-1.c] - Blame information for rev 708

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

Line No. Rev Author Line
1 689 jeremybenn
/* Testcase for http://gcc.gnu.org/ml/gcc-patches/2003-02/msg01017.html */
2
/* { dg-do link { target fpic } } */
3
/* { dg-options "-O -fpic" } */
4
 
5
int *g;
6
 
7
int main (void)
8
{
9
  switch (*g)
10
    {
11
    case 0:
12
      {
13
        switch (*g)
14
          {
15
          case 0: *g = 1; break;
16
          case 1:
17
          case 2: *g = 1; break;
18
          case 3:
19
          case 4: *g = 1; break;
20
          }
21
        break;
22
      }
23
    case 1:
24
      {
25
        switch (*g)
26
          {
27
          case 0: *g = 1; break;
28
          case 1:
29
          case 2: *g = 1; break;
30
          case 3:
31
          case 4: *g = 1; break;
32
          }
33
      }
34
    }
35
  return 0;
36
}

powered by: WebSVN 2.1.0

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