Commit 17ed19cb by Zack Weinberg Committed by Zack Weinberg

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
parent 319ea138
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> Fri Aug 18 16:57:35 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* gcc.c-torture/compile/20000818-1.c: New test. * gcc.c-torture/compile/20000818-1.c: New test.
......
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
/* Test lexing of strings and character constants. */ /* Test lexing of strings and character constants. */
#include <string.h>
#ifndef __WCHAR_TYPE__ #ifndef __WCHAR_TYPE__
#define __WCHAR_TYPE__ int #define __WCHAR_TYPE__ int
#endif #endif
......
...@@ -6,13 +6,12 @@ ...@@ -6,13 +6,12 @@
/* Test ## behaviour and corner cases thoroughly. The macro expander /* Test ## behaviour and corner cases thoroughly. The macro expander
failed many of these during development. */ failed many of these during development. */
#include <string.h>
#ifndef __WCHAR_TYPE__ #ifndef __WCHAR_TYPE__
#define __WCHAR_TYPE__ int #define __WCHAR_TYPE__ int
#endif #endif
typedef __WCHAR_TYPE__ wchar_t; typedef __WCHAR_TYPE__ wchar_t;
extern int strcmp (const char *, const char *);
extern int puts (const char *); extern int puts (const char *);
extern void abort (void); extern void abort (void);
#define err(str) do { puts(str); abort(); } while (0) #define err(str) do { puts(str); abort(); } while (0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment