URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [ptrmem2.C] - Rev 305
Compare with Previous | Blame | View Log
// { dg-do assemble }
class cow {
public:
void moo (char *);
};
void f()
{
cow* c;
void (cow::*fp0)(char*) = &cow::moo; // OK
void (cow::*fp1)(int) = &cow::moo; // { dg-error "" } conversion
int (cow::*fp2)(char*) = &cow::moo; // { dg-error "" } conversion
int (cow::*fp3)(char*, void*) = fp2; // { dg-error "" } conversion
int (cow::*fp4)(double) = (int (cow::*)(double)) fp2; // OK
}