20000519-1.c: Testcase from Ulrich Drepper which fails with SSA.

2000-05-19  Andreas Jaeger  <aj@suse.de>

	* gcc.c-torture/execute/20000519-1.c: Testcase from Ulrich Drepper
	which fails with SSA.

From-SVN: r34029
This commit is contained in:
Andreas Jaeger 2000-05-19 20:06:09 +02:00 committed by Andreas Jaeger
parent 6c80c45e30
commit 0d9a7d79ac
2 changed files with 31 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2000-05-19 Andreas Jaeger <aj@suse.de>
* gcc.c-torture/execute/20000519-1.c: Testcase from Ulrich Drepper
which fails with SSA.
* lib/c-torture.exp: Also test with -O3 -fssa.
2000-05-18 Michael Meissner <meissner@redhat.com>

View File

@ -0,0 +1,28 @@
#include <stdarg.h>
int
bar (int a, va_list ap)
{
int b;
do
b = va_arg (ap, int);
while (b > 10);
return a + b;
}
int
foo (int a, ...)
{
va_list ap;
va_start (ap, a);
return bar (a, ap);
}
int
main ()
{
return foo (1, 2, 3);
}