aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/spec28.C
blob: d63e7967672edfeaf0bb7ebe476fc56013002a8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Build don't link:

template <class T> 
struct S1 {
  friend bool f<>(const S1&);
  typedef T X;
};

template <class T>
struct S2 {
};

template <class T>
struct S2<S1<T> > {
  typedef typename S1<T>::X Y;
};

template <class T>
bool f(T);

template <class T>
typename S2<S1<T> >::Y
f(const S1<T>&);

template struct S1<int>;