URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [ttp13.C] - Rev 305
Compare with Previous | Blame | View Log
// { dg-do run }
template<class T> class D
{
public:
int f();
};
template<class T> int D<T>::f()
{
return sizeof(T);
}
template<template<class> class D,class E> class C
{
D<E> d;
public:
int f();
};
template<template<class> class D,class E> int C<D,E>::f()
{
return d.f();
}
int main()
{
C<D,int> c;
c.f();
}