Debian Codegraph @

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

raw
1 // { dg-do assemble }
2
3 template <class T>
4 bool f(T);
5
6 template <class T>
7 struct S1 {
8 typedef T X;
9 friend bool f<>(const S1&);
10 };
11
12 template <class T>
13 struct S2 {
14 };
15
16 template <class T>
17 struct S2<S1<T> > {
18 typedef typename S1<T>::X Y;
19 };
20
21 template <class T>
22 typename S2<S1<T> >::Y
23 f(const S1<T>&);
24
25 template struct S1<int>;