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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [debug/] [vta-3.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
 
3
int
4
foo (void)
5
{
6
  union { char e[8]; int i; } a, b;
7
  char *c, *d;
8
  unsigned int i;
9
  c = a.e;
10
  d = &b.e[sizeof (int) - 1];
11
  for (i = 0; i < sizeof (int); i++)
12
    {
13
      *d = *c++;
14
      --d;
15
    }
16
  return b.i;
17
}

powered by: WebSVN 2.1.0

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