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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [nestfunc-7.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
struct A
2
{
3
  int one;
4
  int two;
5
  int three;
6
  int four;
7
  int five;
8
  int six;
9
};
10
 
11
static int test (void)
12
{
13
  int base;
14
 
15
  struct A Foo (void)
16
    {
17
      struct A a;
18
 
19
      a.one = base + 1;
20
      a.two = base + 2;
21
      a.three = base + 3;
22
      a.four = base + 4;
23
      a.five = base + 5;
24
      a.six = base + 6;
25
 
26
      return a;
27
    }
28
 
29
  base = 10;
30
  struct A a = Foo ();
31
 
32
  return (a.one == 11
33
          && a.two == 12
34
          && a.three == 13
35
          && a.four == 14
36
          && a.five == 15
37
          && a.six == 16);
38
}
39
 
40
int main (void)
41
{
42
  return !test ();
43
}
44
 

powered by: WebSVN 2.1.0

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