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++.other/] [pmf7.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// Test for proper diagnostics on trying to take the address of a non-static
// member function.
struct A {
void f ();
void f (int);
void g ();
};
int main ()
{
A a;
&a.f; // { dg-error "" } overloaded
&a.g; // { dg-error "" } can't write a pmf like this
}
Go to most recent revision | Compare with Previous | Blame | View Log