First version committed to git
[zpugcc/jano.git] / toolchain / gcc / gcc / testsuite / g++.old-deja / g++.brendan / template24.C
blobd7559547fd76bfb4c0d172527c972fda91b91306
1 // { dg-do run  }
2 // GROUPS passed templates
3 extern "C" int printf (const char *, ...);
5 template <class F>
6 class Temp
8   F  func_;
9 public:
10   Temp (F f) :func_(f) {}
13 int func (int h = 1, int z = 2) { return h+z; }
15 int main ()
17   Temp<int(*)(int, int)> temp (func);
19   printf ("PASS\n");
20   return 0;