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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [qual1.C] - Rev 149

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

// { 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);
}

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

powered by: WebSVN 2.1.0

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