a98d45ff1f
From-SVN: r15777
18 lines
266 B
C
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");
|
|
}
|
|
|