blob: 4be2e0b03fc92ddd2e8f054c6f3a418aac2d1ad4 [file] [log] [blame]
// PR c++/39095
// { dg-do compile }
struct B
{
int b;
};
struct A
{
B *operator->();
A ();
B b;
};
A::A ()
{
}
B *
A::operator->()
{
return &b;
}
A a;
int
foo ()
{
return a->b;
}
// { dg-final { scan-assembler "_ZN1AptEv" } }
// { dg-final { scan-assembler-not "_ZN1AdtEv" } }