OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Formatting fixes.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
ttp16.C
1
// { dg-do run }
2
template<class T> class D
3
{
4
T a;
5
public:
6
int f();
7
};
8
9
template<class T> int D<T>::f()
10
{
11
return sizeof(T);
12
}
13
14
template<template<class> class D,class E> class C
15
{
16
D<E> d;
17
public:
18
int f();
19
};
20
21
template<template<class> class D,class E> int C<D,E>::f()
22
{
23
D<E> d2;
24
return d2.f();
25
}
26
27
int main()
28
{
29
C<D,int> c;
30
c.f();
31
}