2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / spec28.C
blob3cecaf79de950f02ec316d39df5766e201a0eeb1
1 // { dg-do assemble  }
3 template <class T>
4 bool f(T);
6 template <class T> 
7 struct S1 {
8   typedef T X;
9   friend bool f<>(const S1&);
12 template <class T>
13 struct S2 {
16 template <class T>
17 struct S2<S1<T> > {
18   typedef typename S1<T>::X Y;
21 template <class T>
22 typename S2<S1<T> >::Y
23 f(const S1<T>&);
25 template struct S1<int>;