Debian Codegraph @

gcc/testsuite/g++.dg/template/qual1.C

raw
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 &) { return 0; }
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 }