OSDN Git Service

* parser.c (cp_parser_class_specifier): Set class location to that
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.jason / template19.C
1 // { dg-do run  }
2 // Make sure type deduction isn't confused by top-level cv-quals.
3 template <class T> T max (const T a, const T b)  { return a>b?a:b; }
4
5 int main()
6 {
7   int a = 0, b = 1;
8   int c = max (a, b);
9   int d = max ((const int)a, (const int)b);
10 }