aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/cpp/spacing2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/cpp/spacing2.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/cpp/spacing2.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/cpp/spacing2.c b/gcc-4.9/gcc/testsuite/gcc.dg/cpp/spacing2.c
new file mode 100644
index 000000000..6cfa5a3d3
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/cpp/spacing2.c
@@ -0,0 +1,16 @@
+/* Copyright (C) 2001, 2003 Free Software Foundation, Inc. */
+
+/* { dg-do preprocess } */
+
+/* We used to output an unnecessary leading space, leading to Emacs
+ confusion with its Makefile abuse.
+
+ Neil Booth, 12 Oct 2001. */
+
+#define EMPTY
+#define foo bar
+
+a = EMPTY
+foo.. /* No leading space on output. */
+
+/* { dg-final { scan-file spacing2.i "(^|\n)bar\.\." } } */