From ce5bf41cc2f5f52dfb0824a993d6182072f3d035 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 18 Nov 2005 11:06:56 +0000 Subject: [PATCH] * g++.dg/cpp/string-2.C: New test. From-SVN: r107174 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.dg/cpp/string-2.C | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp/string-2.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index dc1c727a80c..96230fc5207 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2005-11-18 Joseph S. Myers + + * g++.dg/cpp/string-2.C: New test. + 2005-11-18 Zdenek Dvorak * gcc.dg/tree-ssa/loop-14.c: New test. 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 00000000000..b947c73eea4 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp/string-2.C @@ -0,0 +1,7 @@ +// Test diagnostics for interpreting strings: should be an error by +// default. +// Origin: Joseph Myers +// { dg-do compile } +// { dg-options "" } + +const char *s = "\q"; // { dg-error "error: unknown escape sequence" }