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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [template19.C] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// { dg-do run  }
// { dg-do run  }
// Make sure type deduction isn't confused by top-level cv-quals.
// Make sure type deduction isn't confused by top-level cv-quals.
template  T max (const T a, const T b)  { return a>b?a:b; }
template  T max (const T a, const T b)  { return a>b?a:b; }
int main()
int main()
{
{
  int a = 0, b = 1;
  int a = 0, b = 1;
  int c = max (a, b);
  int c = max (a, b);
  int d = max ((const int)a, (const int)b);
  int d = max ((const int)a, (const int)b);
}
}
 
 

powered by: WebSVN 2.1.0

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