Commit 88a6bf5e by Jakub Jelinek Committed by Jakub Jelinek

* gcc.dg/20050330-2.c: New test.

From-SVN: r108243
parent 4416de0c
2005-12-08 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/20050330-2.c: New test.
2005-12-08 Erik Edelmann <eedelman@gcc.gnu.org>
PR fortran/25292
/* { dg-do compile } */
/* { dg-options "-O2 -fprofile-generate" } */
struct S
{
int a;
void **b;
};
void
foo (struct S *x, int y)
{
if (!x)
return;
if (y >= x->a)
return;
x->a--;
for (; y < x->a; y++)
x->b[y] = x->b[y + 1];
x->b[x->a] = (void *) 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment