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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20040423-1.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 297 jeremybenn
int
2
sub1 (int i, int j)
3
{
4
  typedef struct
5
  {
6
   int  c[i+2];
7
  }c;
8
  int x[10], y[10];
9
 
10
  if (j == 2)
11
    {
12
      memcpy (x, y, 10 * sizeof (int));
13
      return sizeof (c);
14
    }
15
  else
16
    return sizeof (c) * 3;
17
}
18
 
19
int
20
main ()
21
{
22
  typedef struct
23
  {
24
   int  c[22];
25
  }c;
26
  if (sub1 (20, 3) != sizeof (c)*3)
27
    abort ();
28
 
29
  return 0;
30
}

powered by: WebSVN 2.1.0

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