repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
ptrmem4.C
blob
4725fb5c2376fe133408adf687b293d2351aa27b
1
// { dg-do assemble }
2
// GROUPS passed pointers-to-members
3
class X {
4
private:
5
int i;
6
public:
7
X(int k) { i=k; }
8
int operator=(X &a) { return i = a.i; }
9
int operator=(int ii) { return i = ii; }
10
};
11
int main(void)
12
{
13
int (X::*op1_ptr)(X&);
14
op1_ptr = &X::operator=; // g++ gives error
15
return 0;
16
}