* g++.dg/cpp/string-2.C: New test.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp / string-2.C
blobb947c73eea479d7cbbb94e5afea179f5b3bb68b8
1 // Test diagnostics for interpreting strings: should be an error by
2 // default.
3 // Origin: Joseph Myers <joseph@codesourcery.com>
4 // { dg-do compile }
5 // { dg-options "" }
7 const char *s = "\q"; // { dg-error "error: unknown escape sequence" }