Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/synth7.C

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