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/] [cond4.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do assemble }
// Origin: Loring Holden <lsh@cs.brown.edu>
template <class V>
class _vec3d
{
public:
double _x, _y;
};
class Wvec : public _vec3d<int> { };
template <class T>
class TDI {
public:
T &get();
};
template <class T>
class hashvar {
public :
T _val;
TDI<T> *val() const;
T get() const { return true ? val()->get() : _val; }
};
int
main() {
hashvar<Wvec> CONSTRAINT_DIR;
CONSTRAINT_DIR.get();
}