From: John David Anglin Date: Tue, 10 Sep 2002 21:06:59 +0000 (+0000) Subject: struct-ret-1.c: Add prototype for exit function and correct usage. X-Git-Tag: releases/gcc-3.3.0~2912 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d27442c936f55db02fafd83392127a258cf6f623;p=thirdparty%2Fgcc.git struct-ret-1.c: Add prototype for exit function and correct usage. * gcc.dg/struct-ret-1.c: Add prototype for exit function and correct usage. From-SVN: r57012 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 215ef1a47f0d..2fa75d3c13bb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2002-09-10 John David Anglin + + * gcc.dg/struct-ret-1.c: Add prototype for exit function and correct + usage. + 2002-09-10 Richard Earnshaw * gcc.c-torture/compile/20020910-1.c: New test. diff --git a/gcc/testsuite/gcc.dg/struct-ret-1.c b/gcc/testsuite/gcc.dg/struct-ret-1.c index f581aad07d2c..900ffbef7e32 100644 --- a/gcc/testsuite/gcc.dg/struct-ret-1.c +++ b/gcc/testsuite/gcc.dg/struct-ret-1.c @@ -1,5 +1,6 @@ /* { dg-do run { target hppa*-*-* } } */ /* { dg-options { -O2 } { target hppa*-*-* } } */ +extern void exit (int); typedef struct { int x; int y; @@ -16,7 +17,7 @@ main(int argc, char *argv[]) if (printPoints(toPoint(0, 0), toPoint(1000, 1000)) != 1) abort(); else - exit(); + exit(0); return 0; }