summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/strify4.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/strify4.c')
-rw-r--r--gcc/testsuite/gcc.dg/cpp/strify4.c4
1 files changed, 4 insertions, 0 deletions
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)