From 10dd7d29682a320c5b1782686c3fbcb16f06c7e9 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Tue, 25 Jul 2000 19:39:41 +0000 Subject: [PATCH] * g++.old-deja/g++.other/for2.C: New test. From-SVN: r35251 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.old-deja/g++.other/for2.C | 14 ++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.other/for2.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index eccf57a617a..0d14ba586c8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-07-25 Nathan Sidwell + + * g++.old-deja/g++.other/for2.C: New test. + 2000-07-25 Jakub Jelinek * 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 00000000000..5943c25d98b --- /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 + +// 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;;) + ; +} -- 2.30.2