diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/tempargs.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/tempargs.C | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/tempargs.C b/gcc/testsuite/g++.old-deja/g++.jason/tempargs.C new file mode 100644 index 000000000..5ca92350a --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/tempargs.C @@ -0,0 +1,8 @@ +// { dg-do assemble } +// GROUPS passed templates overloading +template<class T> class Vector { }; +template<class T> struct Sort { static void sort (Vector<typename T::foo> &); }; +template<class T> void Sort<T>::sort (Vector<typename T::foo> &) { } +struct whee { typedef int foo; }; + +void f (Vector<int> &vi) { Sort<whee>::sort (vi); } |