lexstrng.c: Don't include string.h.
authorZack Weinberg <zack@wolery.cumb.org>
Sat, 19 Aug 2000 05:25:00 +0000 (05:25 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Sat, 19 Aug 2000 05:25:00 +0000 (05:25 +0000)
* gcc.dg/cpp/lexstrng.c: Don't include string.h.
* gcc.dg/cpp/paste2.c: Don't include string.h.  Prototype strcmp.

From-SVN: r35801

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/lexstrng.c
gcc/testsuite/gcc.dg/cpp/paste2.c

index 06e861fd996dc1890c411e61fef779195c7e91ef..2eb377aac59befd636b919be0c34d958dc978e56 100644 (file)
@@ -1,3 +1,8 @@
+2000-08-18  Zack Weinberg  <zack@wolery.cumb.org>
+
+       * gcc.dg/cpp/lexstrng.c: Don't include string.h.
+       * gcc.dg/cpp/paste2.c: Don't include string.h.  Prototype strcmp.
+
 Fri Aug 18 16:57:35 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
        * gcc.c-torture/compile/20000818-1.c: New test.
index 4fbb3b555eb688d118f14c8e899cb278685c3be1..b0353300395f3ae39b33924f3cdf2427bfad1d63 100644 (file)
@@ -5,8 +5,6 @@
 
 /* Test lexing of strings and character constants.  */
 
-#include <string.h>
-
 #ifndef __WCHAR_TYPE__
 #define __WCHAR_TYPE__ int
 #endif
index 1ce13a5945a71fd0c91f9a265ae748f5dcd4689f..adb70b5e8e1de629dc137f094f2342bcba5e65a8 100644 (file)
@@ -6,13 +6,12 @@
 /* Test ## behaviour and corner cases thoroughly.  The macro expander
    failed many of these during development.  */
 
-#include <string.h>
-
 #ifndef __WCHAR_TYPE__
 #define __WCHAR_TYPE__ int
 #endif
 typedef __WCHAR_TYPE__ wchar_t;
 
+extern int strcmp (const char *, const char *);
 extern int puts (const char *);
 extern void abort (void);
 #define err(str) do { puts(str); abort(); } while (0)