aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/template2.C
blob: 7e5e108a7281d3d3ab949ac1b9077a856bd2f3ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// GROUPS passed templates
extern "C" void printf (char *, ...);

template<class T> T max(T a, T b) { return a > b ? a : b; }

int max(int, int);

main()
{
  int j;

  j = max(1,2);
  j = max (1, 'c');
  printf ("PASS\n");
}