diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/qual1.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/qual1.C | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/qual1.C b/gcc/testsuite/g++.dg/template/qual1.C new file mode 100644 index 000000000..8fa79b3d2 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/qual1.C @@ -0,0 +1,21 @@ +// { dg-do compile } + +template<class T> +class Link_array +{ +public: + void sort (int (*compare) (T *const&,T *const&)); +}; + +int shift_compare (int *const &, int *const &) {} + +template<class T> void +Link_array<T>::sort (int (*compare) (T *const&,T *const&)) +{ +} + +void f () +{ + Link_array<int> clashes; + clashes.sort (shift_compare); +} |