* g++.old-deja/g++.other/for2.C: New test.
From-SVN: r35251
This commit is contained in:
parent
c37833995f
commit
10dd7d2968
|
@ -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.
|
||||
|
|
|
@ -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;;)
|
||||
;
|
||||
}
|
Loading…
Reference in New Issue