From ec611c173f6d46f47efca1529a3ef10a96de7199 Mon Sep 17 00:00:00 2001 From: Franz Sirl Date: Mon, 26 Jun 2000 23:11:54 +0000 Subject: [PATCH] 980523-1.c: Add prototype for exit(). 2000-06-26 Franz Sirl * gcc.dg/980523-1.c: Add prototype for exit(). * gcc.dg/980827-1.c: Add prototype for exit() and abort(). From-SVN: r34722 --- gcc/testsuite/gcc.dg/980523-1.c | 2 ++ gcc/testsuite/gcc.dg/980827-1.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/gcc/testsuite/gcc.dg/980523-1.c b/gcc/testsuite/gcc.dg/980523-1.c index 6265a733780..71f416e5d78 100644 --- a/gcc/testsuite/gcc.dg/980523-1.c +++ b/gcc/testsuite/gcc.dg/980523-1.c @@ -1,6 +1,8 @@ /* { dg-do run { target rs6000-*-linux* powerpc-*-linux*} } */ /* { dg-options "-O2 -fpic" } */ +extern void exit (int); + void foo1(int a, char *b, int c) { c =a+c+234; diff --git a/gcc/testsuite/gcc.dg/980827-1.c b/gcc/testsuite/gcc.dg/980827-1.c index 0de02ccc58f..84ba5ee4d5f 100644 --- a/gcc/testsuite/gcc.dg/980827-1.c +++ b/gcc/testsuite/gcc.dg/980827-1.c @@ -1,6 +1,9 @@ /* { dg-do run { target rs6000-*-linux* powerpc-*-linux*} } */ /* { dg-options -O2 } */ +extern void exit (int); +extern void abort (void); + double dval = 0; void splat (double d); -- 2.30.2