]> gcc.gnu.org Git - gcc.git/commitdiff
* g++.old-deja/g++.other/for2.C: New test.
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 25 Jul 2000 19:39:41 +0000 (19:39 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 25 Jul 2000 19:39:41 +0000 (19:39 +0000)
From-SVN: r35251

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/for2.C [new file with mode: 0644]

index eccf57a617ab616e66d60dc1a1d0acc3b0fab48b..0d14ba586c80914cd107225718bcff30a516902c 100644 (file)
@@ -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 (file)
index 0000000..5943c25
--- /dev/null
@@ -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;;)
+    ;
+}
This page took 0.073124 seconds and 5 git commands to generate.