20000419-1.c: New test for arg clobbering with sibling-call optimizations.
* execute/20000419-1.c: New test for arg clobbering with sibling-call optimizations. From-SVN: r33249
This commit is contained in:
parent
0a3fcd9a90
commit
21c076f989
@ -1,3 +1,8 @@
|
||||
2000-04-19 Greg McGary <gkm@gnu.org>
|
||||
|
||||
* execute/20000419-1.c: New test for arg clobbering with
|
||||
sibling-call optimizations.
|
||||
|
||||
Wed Apr 12 22:54:02 2000 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
* execute/20000412-6.c: New test.
|
||||
|
22
gcc/testsuite/gcc.c-torture/execute/20000419-1.c
Normal file
22
gcc/testsuite/gcc.c-torture/execute/20000419-1.c
Normal file
@ -0,0 +1,22 @@
|
||||
struct foo { int a, b, c; };
|
||||
|
||||
void
|
||||
brother (int a, int b, int c)
|
||||
{
|
||||
if (a)
|
||||
abort ();
|
||||
}
|
||||
|
||||
void
|
||||
sister (struct foo f, int b, int c)
|
||||
{
|
||||
brother ((f.b == b), b, c);
|
||||
}
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
struct foo f = { 7, 8, 9 };
|
||||
sister (f, 1, 2);
|
||||
exit (0);
|
||||
}
|
Loading…
Reference in New Issue
Block a user