aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Weinberg <zack@wolery.cumb.org>2000-08-19 05:25:00 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-08-19 05:25:00 +0000
commit17ed19cb314cf4aca3fce46bd174474c3adba59b (patch)
tree9637ddb4b8f5e7d86a8d6a0a3dc276f5b1cda7c8
parent319ea138fee0999bf71bf7f73a8783a24b596d4e (diff)
downloadgcc-17ed19cb314cf4aca3fce46bd174474c3adba59b.zip
gcc-17ed19cb314cf4aca3fce46bd174474c3adba59b.tar.gz
gcc-17ed19cb314cf4aca3fce46bd174474c3adba59b.tar.bz2
lexstrng.c: Don't include string.h.
* 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
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/cpp/lexstrng.c2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/paste2.c3
3 files changed, 6 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 06e861f..2eb377a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/gcc.dg/cpp/lexstrng.c b/gcc/testsuite/gcc.dg/cpp/lexstrng.c
index 4fbb3b5..b035330 100644
--- a/gcc/testsuite/gcc.dg/cpp/lexstrng.c
+++ b/gcc/testsuite/gcc.dg/cpp/lexstrng.c
@@ -5,8 +5,6 @@
/* Test lexing of strings and character constants. */
-#include <string.h>
-
#ifndef __WCHAR_TYPE__
#define __WCHAR_TYPE__ int
#endif
diff --git a/gcc/testsuite/gcc.dg/cpp/paste2.c b/gcc/testsuite/gcc.dg/cpp/paste2.c
index 1ce13a5..adb70b5 100644
--- a/gcc/testsuite/gcc.dg/cpp/paste2.c
+++ b/gcc/testsuite/gcc.dg/cpp/paste2.c
@@ -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)