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:
parent
6c80c45e30
commit
0d9a7d79ac
@ -1,5 +1,8 @@
|
|||||||
2000-05-19 Andreas Jaeger <aj@suse.de>
|
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.
|
* lib/c-torture.exp: Also test with -O3 -fssa.
|
||||||
|
|
||||||
2000-05-18 Michael Meissner <meissner@redhat.com>
|
2000-05-18 Michael Meissner <meissner@redhat.com>
|
||||||
|
28
gcc/testsuite/gcc.c-torture/execute/20000519-1.c
Normal file
28
gcc/testsuite/gcc.c-torture/execute/20000519-1.c
Normal 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);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user