blob: cce73b5797121b0196d4610f640675969d917f8e [file] [log] [blame]
// { dg-do compile }
// { dg-options "-O1" }
struct X
{
int i;
};
struct Y : virtual X {};
struct Z : Y {};
struct A
{
Z* p;
A();
};
A::A() : p(0)
{
((X*)(Y*)p)->i++;
}