blob: 47c475a2fc0b4d36d74aa1d57a481a33d1851857 [file] [log] [blame]
/* { dg-do compile } */
struct A
{
int i, j;
A() : i(), j() {}
~A() {}
operator int() { return 0; }
};
struct B
{
A foo() const { return A(); }
};
struct X { ~X(); };
struct C
{
C();
int z[4];
};
C::C()
{
for (int i=0; i<4; ++i)
z[i]=0;
X x;
for (int i=0; i<4; ++i)
int j = B().foo();
}