OSDN Git Service

cp:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp35.C
1 // Build don't link:
2 // GROUPS passed templates membertemplates
3 template <class T>
4 struct S
5 {
6   S(const S& s) {}
7
8   template <class U>
9   S(S<U>& s)
10   {
11     S<U> s2(s);
12   }
13 };
14
15
16 extern S<int>& si;
17
18 void foo()
19 {
20   S<char*> sc(si);
21 }