* gcc.c-torture/execute/20000622-1.c: New test.
From-SVN: r34650
This commit is contained in:
parent
5f34904248
commit
1d663f67b3
@ -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.
|
||||
|
21
gcc/testsuite/gcc.c-torture/execute/20000622-1.c
Normal file
21
gcc/testsuite/gcc.c-torture/execute/20000622-1.c
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user