Debian Codegraph @

gcc/testsuite/g++.dg/cpp/string-1.C

raw
1 // Test location of diagnostics for interpreting strings. Bug 17964.
2 // Origin: Joseph Myers <[email protected]>
3 // { dg-do compile }
4
5 const char *s = "\q"; // { dg-error "unknown escape sequence" }
6
7 const char *t = "\ "; // { dg-error "unknown escape sequence" }
8
9 const char *u = "";