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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [template/] [qual1.C] - Blame information for rev 20

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// { 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.