diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/spec28.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/spec28.C | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/spec28.C b/gcc/testsuite/g++.old-deja/g++.pt/spec28.C new file mode 100644 index 000000000..3cecaf79d --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/spec28.C @@ -0,0 +1,25 @@ +// { dg-do assemble } + +template <class T> +bool f(T); + +template <class T> +struct S1 { + typedef T X; + friend bool f<>(const S1&); +}; + +template <class T> +struct S2 { +}; + +template <class T> +struct S2<S1<T> > { + typedef typename S1<T>::X Y; +}; + +template <class T> +typename S2<S1<T> >::Y +f(const S1<T>&); + +template struct S1<int>; |