gcc/testsuite/gcc.dg/cpp/spacing2.c
raw| 1 | /* Copyright (C) 2001, 2003 Free Software Foundation, Inc. */ |
| 2 | |
| 3 | /* { dg-do preprocess } */ |
| 4 | |
| 5 | /* We used to output an unnecessary leading space, leading to Emacs |
| 6 | confusion with its Makefile abuse. |
| 7 | |
| 8 | Neil Booth, 12 Oct 2001. */ |
| 9 | |
| 10 | #define EMPTY |
| 11 | #define foo bar |
| 12 | |
| 13 | a = EMPTY |
| 14 | foo.. /* No leading space on output. */ |
| 15 | |
| 16 | /* { dg-final { scan-file spacing2.i "(^|\n)bar\.\." } } */ |