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/] [template22.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do run }
// GROUPS passed templates
extern "C" int printf (const char *, ...);
template <class T>
class Foo
{
public:
void func (int const& i);
};
template <class T>
void Foo<T>::
func (int const& i)
{}
int main ()
{
Foo<int const> foo;
printf ("PASS\n");
return 0;
}