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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [debug/] [vta-3.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 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.