gcc/testsuite/gcc.dg/cpp/multiline-2.c
raw| 1 | /* Copyright (C) 2000, 2003 Free Software Foundation, Inc. */ |
| 2 | |
| 3 | /* { dg-do compile } */ |
| 4 | |
| 5 | /* Test that multi-line tokens are rejected by the compiler. Source: |
| 6 | Neil Booth. */ |
| 7 | |
| 8 | const char *p = "line 1 |
| 9 | " |
| 10 | ""; /* The compiler front end sees this. */ |
| 11 | /* { dg-error "17:missing term" "multiline strings" { target *-*-* } .-3 } */ |
| 12 | /* { dg-error "missing term" "multiline strings" { target *-*-* } .-3 } */ |
| 13 |