Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/copy1.C

raw
1 // { dg-do run }
2 int i = 0;
3
4 template <class T>
5 class F
6 {
7 public:
8 F() {}
9
10 template <class T2> F(F<T2>)
11 {
12 i = 1;
13 }
14 };
15
16
17 F<int>
18 foo()
19 {
20 F<int> f1;
21 F<int> f2(f1);
22 return f1;
23 }
24
25 int
26 main()
27 {
28 return i;
29 }
30