OSDN Git Service

new
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / copy1.C
1 int i = 0;
2
3 template <class T>
4 class F 
5 {
6 public:
7   F() {}
8   
9   template <class T2> F(F<T2>) 
10     {
11       i = 1;
12     }      
13 };
14
15
16 F<int>
17 foo()
18 {
19   F<int> f1;
20   F<int> f2(f1);
21   return f1;
22 }
23
24 int
25 main()
26 {
27   return i;
28 }
29