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
* gcc.dg/20020201-1.c: Use cleanup-coverage_files.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
ttp37.C
1
// { dg-do run }
2
template<int T, class U = int> class D
3
{
4
public:
5
int f();
6
};
7
8
template<int T, class U> int D<T,U>::f()
9
{
10
return T+sizeof(U);
11
}
12
13
template<template<int> class D,class E> class C
14
{
15
D<1> d;
16
public:
17
int f() { return d.f(); }
18
};
19
20
template<template<int> class D, int T> int f(D<T> &d1)
21
{
22
d1.f();
23
return T;
24
}
25
26
int main()
27
{
28
D<1> c1;
29
f(c1);
30
}