summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/qual1.C
blob: 8fa79b3d2e7a31ee4e37e31dbc1b38a2fdb56cb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
}