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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [20050330-2.c] - Blame information for rev 455

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

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

powered by: WebSVN 2.1.0

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