8sa1-gcc/gcc/testsuite/g++.old-deja/g++.law/template2.C
1997-09-28 15:26:50 -04:00

18 lines
266 B
C

// GROUPS passed templates
// Special g++ Options: -fguiding-decls
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");
}