aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2006-06-14 19:18:45 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2006-06-14 19:18:45 +0000
commitcf24598a2e455e30465a5c00f6be8b31fe8f7a79 (patch)
treee21f95026b3b414900790882c1ec32a7f73c326a /gcc/testsuite/g++.old-deja
parent438d94ed9aa413a0dbe8ba45b3cf25c196f20c1e (diff)
downloadgcc-cf24598a2e455e30465a5c00f6be8b31fe8f7a79.zip
gcc-cf24598a2e455e30465a5c00f6be8b31fe8f7a79.tar.gz
gcc-cf24598a2e455e30465a5c00f6be8b31fe8f7a79.tar.bz2
re PR c++/28018 (g++.dg/ext/complit1.C fails: in emit_move_insn, at expr.c:3275)
PR c++/28018 * typeck.c (build_modify_expr): Disallow array assignment. PR c++/28018 * g++.old-deja/g++.benjamin/14664-2.C: Expect error for array assignment. * g++.old-deja/g++.pt/crash51.C: Likewise. From-SVN: r114653
Diffstat (limited to 'gcc/testsuite/g++.old-deja')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.benjamin/14664-2.C4
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/crash51.C2
2 files changed, 2 insertions, 4 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/14664-2.C b/gcc/testsuite/g++.old-deja/g++.benjamin/14664-2.C
index 468953b..364f30c 100644
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/14664-2.C
+++ b/gcc/testsuite/g++.old-deja/g++.benjamin/14664-2.C
@@ -7,9 +7,7 @@ char foo[26];
void bar()
{
- // the addition of the flag "-fno-const-string-literal" reverts to pre-ISO.
- // -g++: ANSI C++ forbids assignment of arrays
- foo = "0123456789012345678901234"; // WARNING -
+ foo = "0123456789012345678901234"; // { dg-error "array" }
}
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash51.C b/gcc/testsuite/g++.old-deja/g++.pt/crash51.C
index d851a3b..a3fbc17 100644
--- a/gcc/testsuite/g++.old-deja/g++.pt/crash51.C
+++ b/gcc/testsuite/g++.old-deja/g++.pt/crash51.C
@@ -7,7 +7,7 @@ char foo[26];
template <class T>
void f ()
{
- foo = "0123456789012345678901234";
+ foo = "0123456789012345678901234"; // { dg-error "array" }
}
template void f<int>();