20020201-1.c: Remove declarations for exit, abort, rand, srand.
authorAnna Tikhonova <anna.tikhonova@intel.com>
Fri, 27 Jul 2012 09:54:30 +0000 (09:54 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Fri, 27 Jul 2012 09:54:30 +0000 (09:54 +0000)
        * gcc.dg/20020201-1.c: Remove declarations for exit, abort,
        rand, srand. Include <stdlib.h>.

From-SVN: r189905

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20020201-1.c

index 6236cc03ee53e7dd996347f88b35f2c69a639dd2..cd0a3583812d78b10b9365d018d1782c4fb1be52 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-27  Anna Tikhonova  <anna.tikhonova@intel.com>
+
+       * gcc.dg/20020201-1.c: Remove declarations for exit, abort,
+       rand, srand. Include <stdlib.h>.
+
 2012-07-26  Janis Johnson  <janisjo@codesourcery.com>
 
        * gcc.dg/pr45259.c: Only -fpic depends on fpic support.
index 6002c59819fb7b17edfc94f71f66bc1a329a4e14..1cb2a878804415e8051bd1d7e855b8edba8e4523 100644 (file)
@@ -7,11 +7,7 @@
 /* { dg-options "-fprofile-arcs" } */
 /* { dg-do run { target native } } */
 
-extern void abort (void);
-extern void exit (int);
-
-int rand (void);
-void srand (unsigned int seed);
+#include <stdlib.h>
 
 int globvar;