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