gcc/testsuite/g++.old-deja/g++.other/for2.C
raw| 1 | // { dg-do assemble } |
| 2 | |
| 3 | // Copyright (C) 2000 Free Software Foundation, Inc. |
| 4 | // Contributed by Nathan Sidwell 24 Jul 2000 <[email protected]> |
| 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 | } |