aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2000-07-25 19:39:41 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2000-07-25 19:39:41 +0000
commit10dd7d29682a320c5b1782686c3fbcb16f06c7e9 (patch)
tree57725de85606fe2e671c2a7d6343b167e64bdd37 /gcc
parentc37833995fe3eeb6c163ad80221c4ff2e7172422 (diff)
downloadgcc-10dd7d29682a320c5b1782686c3fbcb16f06c7e9.zip
gcc-10dd7d29682a320c5b1782686c3fbcb16f06c7e9.tar.gz
gcc-10dd7d29682a320c5b1782686c3fbcb16f06c7e9.tar.bz2
* g++.old-deja/g++.other/for2.C: New test.
From-SVN: r35251
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/for2.C14
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index eccf57a..0d14ba5 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2000-07-25 Nathan Sidwell <nathan@codesourcery.com>
+
+ * g++.old-deja/g++.other/for2.C: New test.
+
2000-07-25 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/20000720-1.c: New test.
diff --git a/gcc/testsuite/g++.old-deja/g++.other/for2.C b/gcc/testsuite/g++.old-deja/g++.other/for2.C
new file mode 100644
index 0000000..5943c25
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/for2.C
@@ -0,0 +1,14 @@
+// Build don't link:
+
+// Copyright (C) 2000 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 24 Jul 2000 <nathan@codesourcery.com>
+
+// Bug 306
+// binding a reference in for scope creates nameless objects. Make sure
+// we don't try and inject them into scope, for ARM compatibility.
+
+void foo ()
+{
+ for (const int &thing = 0;;)
+ ;
+}