diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/spacing2.c')
| -rw-r--r-- | gcc/testsuite/gcc.dg/cpp/spacing2.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/spacing2.c b/gcc/testsuite/gcc.dg/cpp/spacing2.c new file mode 100644 index 00000000000..760872aea39 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/spacing2.c @@ -0,0 +1,21 @@ +/* Copyright (C) 2001 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 { if ![file exists spacing2.i] { return } } } + { dg-final { if \{ [grep spacing2.i "^bar\.\."] != "" \} \{ } } + { dg-final { return \} } } + { dg-final { fail "spacing2.c: spacing issues" } } +*/ |

