Commit 85272855 by Alan Modra Committed by Alan Modra

* gcc.dg/nest.c: New.

From-SVN: r55546
parent 99bcb625
2002-07-18 Alan Modra <amodra@bigpond.net.au>
* gcc.dg/nest.c: New.
2002-07-17 Eric Botcazou <ebotcazou@multimania.com>
* gcc.c-torture/execute/loop-2e.x: Let the testcase
......
/* PR 5967, PR 7114 */
/* { dg-do run } */
/* { dg-options "-O2 -pg" } */
long foo (long x)
{
long i, sum = 0;
long bar (long z) { return z * 2; }
for (i = 0; i < x; i++)
sum += bar (i);
return sum;
}
int main (void)
{
if (foo(10) != 90)
abort ();
return 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