aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.jason/overload30.C
blob: 9f65080eb19eb02cc5eca6ede15e2519fa7c586f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do assemble  }
// PRMS Id: 6412

class Foo;

template <class F>
class Temp
{
  F  func_;
public:
  Temp (F f) : func_(f) {}
};

template <class T>
T* func1 (T* t) { return t; }

Temp<Foo*(*)(Foo*)> temp2(func1);