Commit f95b2ff9 by Richard Henderson Committed by Richard Henderson

New test.

From-SVN: r35872
parent 6f322d27
2000-08-22 Richard Henderson <rth@cygnus.com>
* gcc.c-torture/execute/20000822-1.c: New test.
2000-08-21 Jakub Jelinek <jakub@redhat.com> 2000-08-21 Jakub Jelinek <jakub@redhat.com>
* gcc.c-torture/execute/20000819-1.x: Remove. * gcc.c-torture/execute/20000819-1.x: Remove.
......
int f0(int (*fn)(int *), int *p)
{
return (*fn) (p);
}
int f1(void)
{
int i = 0;
int f2(int *p)
{
i = 1;
return *p + 1;
}
return f0(f2, &i);
}
int main()
{
if (f1() != 2)
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