Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.jason / template19.C
blob0a57742a37757dd79812bb7b0ee8a40f1d1d06e3
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; }
5 int main()
7   int a = 0, b = 1;
8   int c = max (a, b);
9   int d = max ((const int)a, (const int)b);