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++.jason/] [pmf3.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do assemble }
// From: enewton@uunet.uu.NET
// Subject: g++ 2.5.8: cannot cast member function pointers
// Date: 27 Jan 1994 01:22:56 -0500
struct A {
void f(char);
void g(int);
};
typedef void (A::*Ptr)(char);
void q() {
Ptr p;
p = (Ptr) &A::f;
p = (Ptr) &A::g;
p = &A::f;
}