diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp/string-2.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp/string-2.C | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp/string-2.C b/gcc/testsuite/g++.dg/cpp/string-2.C new file mode 100644 index 000000000..f71486231 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp/string-2.C @@ -0,0 +1,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" } |