OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [20030213-1.c] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 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
/* { dg-bogus "\[Uu\]nresolved symbol .(_GLOBAL_OFFSET_TABLE_|\[_.A-Za-z\]\[_.0-9A-Za-z\]*@(PLT|GOT|GOTOFF))" "PIC unsupported" { xfail *-*-netware* } 0 } */
5
 
6
int *g;
7
 
8
int main (void)
9
{
10
  switch (*g)
11
    {
12
    case 0:
13
      {
14
        switch (*g)
15
          {
16
          case 0: *g = 1; break;
17
          case 1:
18
          case 2: *g = 1; break;
19
          case 3:
20
          case 4: *g = 1; break;
21
          }
22
        break;
23
      }
24
    case 1:
25
      {
26
        switch (*g)
27
          {
28
          case 0: *g = 1; break;
29
          case 1:
30
          case 2: *g = 1; break;
31
          case 3:
32
          case 4: *g = 1; break;
33
          }
34
      }
35
    }
36
  return 0;
37
}

powered by: WebSVN 2.1.0

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