URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [anon7.C] - Rev 693
Compare with Previous | Blame | View Log
// PR c++/39560
// { dg-options -Wunused }
struct X { };
class Z {
public:
X* cc(int c);
};
class F {
public:
typedef X* (Z::*MethO)(int);
typedef X* (F::*MethF)(int);
template<MethO m>
X* xwrapper(int i) {
union {
Z *z;
F *f;
}; // { dg-bogus "unused" }
f = this;
return ((z->*m)(i));
}
};
F::MethF meth = &F::xwrapper<&Z::cc>;