gcc/testsuite/c-c++-common/pr91733.c
raw| 1 | /* { dg-do preprocess } */ |
| 2 | /* { dg-additional-options "-fdiagnostics-show-caret" } */ |
| 3 | |
| 4 | const char *s = " "; |
| 5 | |
| 6 | /* { dg-warning "missing terminating \"" "test1" { target *-*-* } 4 } */ |
| 7 | /* { dg-warning "missing terminating \"" "test2" { target *-*-* } 5 } */ |
| 8 | |
| 9 | /* { dg-begin-multiline-output "test3" } |
| 10 | const char *s = " |
| 11 | ^ |
| 12 | { dg-end-multiline-output "test3" } */ |
| 13 | |
| 14 | /* { dg-begin-multiline-output "test4" } |
| 15 | "; |
| 16 | ^ |
| 17 | { dg-end-multiline-output "test4" } */ |