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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20011114-3.c] - Blame information for rev 749

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

Line No. Rev Author Line
1 688 jeremybenn
typedef struct { int s, t; } C;
2
C x;
3
int foo (void);
4
void bar (int);
5
 
6
int baz (void)
7
{
8
  int a = 0, c, d = 0;
9
  C *b = &x;
10
 
11
  while ((c = foo ()))
12
    switch(c)
13
      {
14
      case 23:
15
        bar (1);
16
        break;
17
      default:
18
        break;
19
      }
20
 
21
  if (a == 0 || (a & 1))
22
    {
23
      if (b->s)
24
        {
25
          if (a)
26
            bar (1);
27
          else
28
            a = 16;
29
        }
30
      else if (b->t)
31
        {
32
          if (a)
33
            bar (1);
34
          else
35
            a = 32;
36
        }
37
    }
38
 
39
  if (d && (a & ~127))
40
    bar (2);
41
  return 0;
42
}

powered by: WebSVN 2.1.0

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