repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
synth7.C
blob
059537798803ddfcf2724b45bb7a7d56729f264a
1
// Testcase to make sure that synthesized methods are found when needed.
2
3
struct B { ~B() { } };
4
struct A { B b; };
5
6
int main()
7
{
8
A a, b (a), c = A();
9
A& (A::*afp)(const A&) = &A::operator=;
10
(a.*afp) (b);
11
}