This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Glitch in gcc.dg/20000623-1.c


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);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]