]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.old-deja/g++.pt/copy1.C
pt.c (instantiate_decl): Tell the repository code about the clones, not the cloned...
[gcc.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
This page took 0.048143 seconds and 5 git commands to generate.