OSDN Git Service

* g++.old-deja/g++.other/eh4.C: Fix typo.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / for2.C
1 // Build don't link:
2
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 24 Jul 2000 <nathan@codesourcery.com>
5
6 // Bug 306
7 // binding a reference in for scope creates nameless objects. Make sure
8 // we don't try and inject them into scope, for ARM compatibility.
9
10 void foo ()
11 {
12   for (const int &thing = 0;;)
13     ;
14 }