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/] [ttp15.C] - Rev 12
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()
{
D<E> d2;
return d2.f();
}
int main()
{
C<D,int> c;
c.f();
}