This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Use exit instead of return in testcases.
- To: gcc-patches at gcc dot gnu dot org
- Subject: [patch] Use exit instead of return in testcases.
- From: clm at cygnus dot com
- Date: Wed, 29 Nov 2000 14:19:27 -0600
- CC: clm at redhat dot com
This is a small patch to clean up a couple of testcases.
OK to install?
2000-11-29 Catherine Moore <clm@redhat.com>
* gcc.c-torture/execute/va-arg-11.c: Use exit(0).
* gcc.c-torture/execute/va-arg-21.c: Likewise.
Index: va-arg-11.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/gcc.c-torture/execute/va-arg-11.c,v
retrieving revision 1.1
diff -p -r1.1 va-arg-11.c
*** va-arg-11.c 1999/10/04 22:12:37 1.1
--- va-arg-11.c 2000/11/29 20:21:16
*************** main (void)
*** 25,29 ****
{
if (foo (5, 4, 3, 2, 1, 0))
abort ();
! return 0;
}
--- 25,29 ----
{
if (foo (5, 4, 3, 2, 1, 0))
abort ();
! exit (0);
}
Index: va-arg-21.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/gcc.c-torture/execute/va-arg-21.c,v
retrieving revision 1.1
diff -p -r1.1 va-arg-21.c
*** va-arg-21.c 2000/10/31 21:30:22 1.1
--- va-arg-21.c 2000/11/29 20:21:22
*************** doit (const char *s, ...)
*** 44,48 ****
int main()
{
doit ("%s", "hello world\n");
! return 0;
}
--- 44,48 ----
int main()
{
doit ("%s", "hello world\n");
! exit (0);
}