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/] [spec29.C] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
// PR c++/25855
2
// { dg-do run }
3
 
4
template   int qCompare(const T *t1, const T *t2) { return 1; }
5
template   int qCompare(T *t1, T *t2) { return 2; }
6
template  int qCompare(const T1 *t1, const T2 *t2) {
7
  return 3; }
8
template<> int qCompare(const char *t1, const char *t2) { return 4; }
9
int main()
10
{
11
  if (qCompare("a", "b") != 4)
12
    return 1;
13
}

powered by: WebSVN 2.1.0

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