struct-ret-1.c: Add prototype for exit function and correct usage.
authorJohn David Anglin <dave@hiauly1.hia.nrc.ca>
Tue, 10 Sep 2002 21:06:59 +0000 (21:06 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Tue, 10 Sep 2002 21:06:59 +0000 (21:06 +0000)
* gcc.dg/struct-ret-1.c: Add prototype for exit function and correct
usage.

From-SVN: r57012

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/struct-ret-1.c

index 215ef1a..2fa75d3 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
+
+       * gcc.dg/struct-ret-1.c: Add prototype for exit function and correct
+       usage.
+
 2002-09-10  Richard Earnshaw  <rearnsha@arm.com>
 
        * gcc.c-torture/compile/20020910-1.c: New test.
index f581aad..900ffbe 100644 (file)
@@ -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;
 }