Commit 1d663f67 by Jakub Jelinek Committed by Jakub Jelinek

* gcc.c-torture/execute/20000622-1.c: New test.

From-SVN: r34650
parent 5f349042
2000-06-22 Jakub Jelinek <jakub@redhat.com>
* gcc.c-torture/execute/20000622-1.c: New test.
2000-06-22 Nathan Sidwell <nathan@codesourcery.com>
* g++.old-deja/g++.other/init15.C: New test.
......
long foo(long a, long b, long c)
{
if (a != 12 || b != 1 || c != 11)
abort();
return 0;
}
long bar (long a, long b)
{
return b;
}
void baz (long a, long b, void *c)
{
long d;
d = (long)c;
foo(d, bar (a, 1), b);
}
int main()
{
baz (10, 11, (void *)12);
exit(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