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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [s.c] - Blame information for rev 714

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

Line No. Rev Author Line
1 688 jeremybenn
struct foo
2
{
3
  int a, b, c, d;
4
  double doubl;
5
} s1, s2;
6
 
7
struct foo
8
structret (s1, i1, i2, s2)
9
     struct foo s1, s2;
10
     int i1, i2;
11
{
12
  if (i1 != i2)
13
    {
14
      if (i1 < i2)
15
        return s1;
16
      else
17
        return s2;
18
    }
19
  s2.a = 11;
20
  s2.b = 22;
21
  s2.c = s1.c;
22
  s2.d = s1.d;
23
  return s2;
24
}

powered by: WebSVN 2.1.0

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