This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Glitch in gcc.dg/20000623-1.c
- To: gcc-patches at gcc dot gnu dot org, geoffk at cygnus dot com
- Subject: Glitch in gcc.dg/20000623-1.c
- From: Zack Weinberg <zack at wolery dot cumb dot org>
- Date: Sun, 25 Jun 2000 20:52:48 -0700
gcc.dg tests need to prototype exit and abort if they use them.
Note this particular test might be better off in gcc.c-torture with an
.x file.
zw
* gcc.dg/20000623-1.c: Prototype exit and abort.
===================================================================
Index: gcc.dg/20000623-1.c
--- gcc.dg/20000623-1.c 2000/06/23 20:05:55 1.1
+++ gcc.dg/20000623-1.c 2000/06/26 03:45:32
@@ -1,6 +1,9 @@
/* { dg-do run } */
/* { dg-options "-O3 -fno-strict-aliasing" } */
+extern void exit (int);
+extern void abort (void);
+
struct foos { int l; };
int foo;
static struct foos *getfoo(void);