blob: 2fb52a1ece2b4d86e570d78d5a8c40d4f48d9282 [file] [log] [blame]
// Origin: Mark Mitchell <mark@codesourcery.com>
int i;
struct B {
B () {}
B (B&) { i = 1; }
B (const B&) { i = 2; }
};
struct D : public B {
D () {}
};
int main ()
{
D d;
D d2 (d);
if (i != 2)
return 1;
}