PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / qual1.C
blob7b20265eb9a4ff511c17345badae8409b062e4d9
1 // { dg-do compile }
3 template<class T>
4 class Link_array
6 public:
7   void sort (int (*compare) (T *const&,T *const&));
8 };
10 int shift_compare (int *const &, int *const &) { return 0; }
12 template<class T> void
13 Link_array<T>::sort (int (*compare) (T *const&,T *const&)) 
17 void f ()
19   Link_array<int> clashes;
20   clashes.sort (shift_compare);