]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Sun, 1 Dec 2002 03:58:53 +0000 (03:58 +0000)
committerNo Author <no-author@gcc.gnu.org>
Sun, 1 Dec 2002 03:58:53 +0000 (03:58 +0000)
'gcc-3_2-branch'.

From-SVN: r59670

gcc/testsuite/g++.dg/init/string1.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/init/string1.C b/gcc/testsuite/g++.dg/init/string1.C
new file mode 100644 (file)
index 0000000..597b861
--- /dev/null
@@ -0,0 +1,8 @@
+extern void f (char*);
+
+extern const char * const target = "foo";
+
+void g ()
+{
+  f (target); // { dg-error "conversion" }
+}