summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp/string-2.C
blob: f7148623152868f636587b3a9039f33bf56be47c (plain)
1
2
3
4
5
6
// Test diagnostics for interpreting strings: This is a pedwarn.
// Origin: Joseph Myers <joseph@codesourcery.com>
// { dg-do compile }
// { dg-options "" }

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