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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [20050330-2.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-require-profiling "-fprofile-generate" } */
3
/* { dg-options "-O2 -fprofile-generate" } */
4
 
5
struct S
6
{
7
  int a;
8
  void **b;
9
};
10
 
11
void
12
foo (struct S *x, int y)
13
{
14
  if (!x)
15
    return;
16
  if (y >= x->a)
17
    return;
18
  x->a--;
19
  for (; y < x->a; y++)
20
    x->b[y] = x->b[y + 1];
21
  x->b[x->a] = (void *) 0;
22
}

powered by: WebSVN 2.1.0

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