URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [cond3.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
// Origin: Loring Holden <lsh@lsh.cs.brown.edu>
template <class T>
class REFptr {
public:
operator T* () const;
};
class CamFocus;
typedef REFptr<CamFocus> CamFocusptr;
class CamFocus {
protected:
static CamFocusptr _focus;
public :
static CamFocusptr &cur() { return _focus; }
};
void
test()
{
if (CamFocus::cur()) {
}
}