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++.pt/] [ptrmem1.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
class foo
{
public:
template<class T>
T bar() { return 7; }
};
int
main()
{
foo f;
int (foo::*s)() = &foo::bar<int>;
if ((f.*s)() == 7)
return 0;
else
return 1;
}
Go to most recent revision | Compare with Previous | Blame | View Log