1// { dg-do run  }
2// Testcase to make sure that synthesized methods are found when needed.
3
4struct B { ~B() { } };
5struct A { B b; };
6
7int main()
8{
9  A a, b (a), c = A();
10  A& (A::*afp)(const A&) = &A::operator=;
11  (a.*afp) (b);
12}
13