☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
synth7.C
☽
☼
gcc/testsuite/g++.old-deja/g++.jason/synth7.C
code
plain
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
}