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:
Greg McGary 2000-04-19 08:32:43 +00:00 committed by Greg McGary
parent 0a3fcd9a90
commit 21c076f989
2 changed files with 27 additions and 0 deletions

View File

@ -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.

View 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);
}