OSDN Git Service

/cp
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / qual1.C
1 // { dg-do compile }
2
3 template<class T>
4 class Link_array
5 {
6 public:
7   void sort (int (*compare) (T *const&,T *const&));
8 };
9
10 int shift_compare (int *const &, int *const &) {}
11
12 template<class T> void
13 Link_array<T>::sort (int (*compare) (T *const&,T *const&)) 
14 {
15 }
16
17 void f ()
18 {
19   Link_array<int> clashes;
20   clashes.sort (shift_compare);
21 }