OSDN Git Service

fix implicit int
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.brendan / template24.C
1 // GROUPS passed templates
2 extern "C" void printf (char *, ...);
3
4 template <class F>
5 class Temp
6 {
7   F  func_;
8 public:
9   Temp (F f) :func_(f) {}
10 };
11
12 int func (int h = 1, int z = 2) { return h+z; }
13
14 int main ()
15 {
16   Temp<int(*)(int, int)> temp (func);
17
18   printf ("PASS\n");
19   return 0;
20 }