summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp/string-1.C
blob: da3133071d73fdc9aaf9a52d1ae085241c7b773f (plain)
1
2
3
4
5
6
7
8
9
// Test location of diagnostics for interpreting strings.  Bug 17964.
// Origin: Joseph Myers <joseph@codesourcery.com>
// { dg-do compile }

const char *s = "\q"; // { dg-error "unknown escape sequence" }

const char *t = "\	"; // { dg-error "unknown escape sequence" }

const char *u = "";