blob: 04f6aa6b6ea939fed041ab408378f9eb093236fa [file] [log] [blame]
/* { dg-do compile { target c++11 } } */
/* { dg-options "-O -fipa-cp -fno-early-inlining -fipa-cp-clone --param=ipa-cp-eval-threshold=1" } */
void bar (void *, void *);
struct C
{
constexpr C ():p (0)
{
}
void *get ()
{
return p;
}
void *p;
};
struct B:C
{
};
struct A
{
void f (B * x, B * y)
{
bar (x->get (), y->get ());
}
};
void
foo ()
{
A a;
B b;
a.f (&b, &b);
}