summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp')
-rw-r--r--gcc/testsuite/gcc.dg/cpp/digraphs.c4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/lexnum.c4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/lexstrng.c4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/macro1.c4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/paste2.c4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/strify3.c4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/strify4.c4
7 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/digraphs.c b/gcc/testsuite/gcc.dg/cpp/digraphs.c
index 49a1bcd8604..55bc46b061f 100644
--- a/gcc/testsuite/gcc.dg/cpp/digraphs.c
+++ b/gcc/testsuite/gcc.dg/cpp/digraphs.c
@@ -8,7 +8,11 @@
extern int strcmp (const char *, const char *);
extern void abort (void);
+#if DEBUG
extern int puts (const char *);
+#else
+#define puts(X)
+#endif
#define err(str) do { puts(str); abort(); } while (0)
%:define glue(x, y) x %:%: y /* #define glue(x, y) x ## y. */
diff --git a/gcc/testsuite/gcc.dg/cpp/lexnum.c b/gcc/testsuite/gcc.dg/cpp/lexnum.c
index 7df15540833..3d7a9a8ddf8 100644
--- a/gcc/testsuite/gcc.dg/cpp/lexnum.c
+++ b/gcc/testsuite/gcc.dg/cpp/lexnum.c
@@ -5,7 +5,11 @@
/* Test lexing of numbers. */
+#if DEBUG
extern int puts (const char *);
+#else
+#define puts(X)
+#endif
extern void abort (void);
#define err(str) do { puts(str); abort(); } while (0)
diff --git a/gcc/testsuite/gcc.dg/cpp/lexstrng.c b/gcc/testsuite/gcc.dg/cpp/lexstrng.c
index b0353300395..9e13cd5fa33 100644
--- a/gcc/testsuite/gcc.dg/cpp/lexstrng.c
+++ b/gcc/testsuite/gcc.dg/cpp/lexstrng.c
@@ -11,7 +11,11 @@
typedef __WCHAR_TYPE__ wchar_t;
extern int strcmp (const char *, const char *);
+#if DEBUG
extern int puts (const char *);
+#else
+#define puts(X)
+#endif
extern void abort (void);
#define err(str) do { puts(str); abort(); } while (0)
diff --git a/gcc/testsuite/gcc.dg/cpp/macro1.c b/gcc/testsuite/gcc.dg/cpp/macro1.c
index e7235f577c2..a2b1a38e295 100644
--- a/gcc/testsuite/gcc.dg/cpp/macro1.c
+++ b/gcc/testsuite/gcc.dg/cpp/macro1.c
@@ -4,7 +4,11 @@
/* Tests various macro abuse is correctly expanded. */
+#if DEBUG
extern int puts (const char *);
+#else
+#define puts(X)
+#endif
extern void abort (void);
extern int strcmp(const char *s1, const char *s2);
diff --git a/gcc/testsuite/gcc.dg/cpp/paste2.c b/gcc/testsuite/gcc.dg/cpp/paste2.c
index 788e4eb51d3..b9bc7c2a8d0 100644
--- a/gcc/testsuite/gcc.dg/cpp/paste2.c
+++ b/gcc/testsuite/gcc.dg/cpp/paste2.c
@@ -12,7 +12,11 @@
typedef __WCHAR_TYPE__ wchar_t;
extern int strcmp (const char *, const char *);
+#if DEBUG
extern int puts (const char *);
+#else
+#define puts(X)
+#endif
extern void abort (void);
#define err(str) do { puts(str); abort(); } while (0)
diff --git a/gcc/testsuite/gcc.dg/cpp/strify3.c b/gcc/testsuite/gcc.dg/cpp/strify3.c
index 5d76b5e750f..b2ee4ab5562 100644
--- a/gcc/testsuite/gcc.dg/cpp/strify3.c
+++ b/gcc/testsuite/gcc.dg/cpp/strify3.c
@@ -9,7 +9,11 @@
Neil Booth, 24 Sep 2001. */
extern int strcmp (const char *, const char *);
+#if DEBUG
extern int puts (const char *);
+#else
+#define puts(X)
+#endif
extern void abort (void);
#define err(str) do { puts(str); abort(); } while (0)
diff --git a/gcc/testsuite/gcc.dg/cpp/strify4.c b/gcc/testsuite/gcc.dg/cpp/strify4.c
index b8b2f11e9d1..9b4c0ddf4f1 100644
--- a/gcc/testsuite/gcc.dg/cpp/strify4.c
+++ b/gcc/testsuite/gcc.dg/cpp/strify4.c
@@ -4,7 +4,11 @@
Andrew Pinski */
extern int strcmp (const char *, const char *);
+#if DEBUG
extern int puts (const char *);
+#else
+#define puts(X)
+#endif
extern void abort (void);
#define err(str) do { puts(str); abort(); } while (0)