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"); }