Commit 7d72d96e by Zack Weinberg

* gcc.c-torture/execute/991216-3.c: Delete, duplicate of 991216-2.c.

From-SVN: r81993
parent 2ab20654
2004-05-18 Zack Weinberg <zack@codesourcery.com>
* gcc.c-torture/execute/991216-3.c: Delete, duplicate of 991216-2.c.
2004-05-18 Paul Brook <paul@codesourcery.com> 2004-05-18 Paul Brook <paul@codesourcery.com>
PR fortran/13930 PR fortran/13930
...@@ -54,7 +58,7 @@ ...@@ -54,7 +58,7 @@
* gfortran.fortran-torture/compile/noncontinuation_1.f90: Rename * gfortran.fortran-torture/compile/noncontinuation_1.f90: Rename
this ... this ...
* gfortran.fortran-torture/compile/noncontinuation_1.f: ... to * gfortran.fortran-torture/compile/noncontinuation_1.f: ... to
this. this.
2004-05-14 Andrew Pinski <pinskia@physics.uc.edu> 2004-05-14 Andrew Pinski <pinskia@physics.uc.edu>
...@@ -63,7 +67,7 @@ ...@@ -63,7 +67,7 @@
2004-05-14 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de> 2004-05-14 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
* gfortran.fortran-torture/compile/noncontinuation_1.f90: New * gfortran.fortran-torture/compile/noncontinuation_1.f90: New
test. test.
2004-05-14 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de> 2004-05-14 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
...@@ -254,7 +258,7 @@ ...@@ -254,7 +258,7 @@
* gcc.dg/unused-6.c: New test. * gcc.dg/unused-6.c: New test.
2004-04-24 Laurent GUERBY <laurent@guerby.net> 2004-04-24 Laurent GUERBY <laurent@guerby.net>
Ulrich Weigand <uweigand@de.ibm.com> Ulrich Weigand <uweigand@de.ibm.com>
* ada/acats/run_all.sh: Define $target variable. * ada/acats/run_all.sh: Define $target variable.
......
#include <stdarg.h>
#define VALUE 0x123456789abcdefLL
#define AFTER 0x55
void
test (int n, ...)
{
va_list ap;
int i;
va_start (ap, n);
for (i = 2; i <= n; i++)
{
if (va_arg (ap, int) != i)
abort ();
}
if (va_arg (ap, long long) != VALUE)
abort ();
if (va_arg (ap, int) != AFTER)
abort ();
va_end (ap);
}
int
main ()
{
test (1, VALUE, AFTER);
test (2, 2, VALUE, AFTER);
test (3, 2, 3, VALUE, AFTER);
test (4, 2, 3, 4, VALUE, AFTER);
test (5, 2, 3, 4, 5, VALUE, AFTER);
test (6, 2, 3, 4, 5, 6, VALUE, AFTER);
test (7, 2, 3, 4, 5, 6, 7, VALUE, AFTER);
test (8, 2, 3, 4, 5, 6, 7, 8, VALUE, AFTER);
exit (0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment