summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/for3.C
blob: c8ef3cc6291c92da0af1dde5aeca805f430e9e54 (plain)
1
2
3
4
5
6
7
8
9
// { dg-do compile }

struct A { int i;  A();  A(const A&); };

void bar()
{
    A a;
    for ( ;; a=A() ) ;
}