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++.brendan/] [template21.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed templates
template<class T>
class L {
public:
L();
T x[30];
int doit(int i) const;
};
#ifdef BUG
template<class T>
int
L<T>::doit(int i) const
{
return x[i].z;
}
#endif
class X {
public:
class Y {
public:
Y();
Y(int);
int z;
};
L<Y> ly;
};
#ifndef BUG
template<class T>
int
L<T>::doit(int i) const
{
return x[i].z;
}
#endif
static X x;