aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn David Anglin <dave@hiauly1.hia.nrc.ca>2002-09-10 21:06:59 +0000
committerJohn David Anglin <dave@hiauly1.hia.nrc.ca>2002-09-10 21:06:59 +0000
commit1d2dce6af5ea53ea6e7e1601781f6ed0f1554c04 (patch)
treea16ff72ad98acea408038f132510d29da6bab583
parent449929b26a9bc88026f6d3d0e25217075610b89c (diff)
* gcc.dg/struct-ret-1.c: Add prototype for exit function and correct
usage. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@57012 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/struct-ret-1.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 215ef1a47f0..2fa75d3c13b 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/gcc.dg/struct-ret-1.c b/gcc/testsuite/gcc.dg/struct-ret-1.c
index f581aad07d2..900ffbef7e3 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;
}