OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [qual1.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
template
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 void
13
Link_array::sort (int (*compare) (T *const&,T *const&))
14
{
15
}
16
 
17
void f ()
18
{
19
  Link_array clashes;
20
  clashes.sort (shift_compare);
21
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.