URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [ptrmem4.C] - Rev 165
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed pointers-to-members
class X {
private:
int i;
public:
X(int k) { i=k; }
int operator=(X &a) { return i = a.i; }
int operator=(int ii) { return i = ii; }
};
int main(void)
{
int (X::*op1_ptr)(X&);
op1_ptr = &X::operator=; // g++ gives error
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log