gcc/testsuite/gcc.dg/cpp/backslash2.c
raw| 1 | /* Copyright (C) 2000 Free Software Foundation, Inc. */ |
| 2 | |
| 3 | /* { dg-do preprocess } */ |
| 4 | |
| 5 | /* Test warnings for backslash-space-newline. |
| 6 | Source: Neil Booth. 6 Dec 2000. */ |
| 7 | |
| 8 | foo \ |
| 9 | bar |
| 10 | /* { dg-warning "separated by space" "" { target *-*-* } .-2 } */ |
| 11 | |
| 12 | /* foo \ |
| 13 | bar */ |
| 14 | /* { dg-bogus "separated by space" "" { target *-*-* } .-2 } */ |