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

From-SVN: r34650
This commit is contained in:
Jakub Jelinek 2000-06-22 22:40:52 +02:00 committed by Jakub Jelinek
parent 5f34904248
commit 1d663f67b3
2 changed files with 25 additions and 0 deletions

View File

@ -1,3 +1,7 @@
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.

View File

@ -0,0 +1,21 @@
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);
}