aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp75.C
blob: 4ff38b6c04c80bb58e45833621fff9be52d490a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Build don't link:

void
print(const int& i)
{
}

template<class A>
class bar
{
public:	
  template<void (*B)(const A& a)>
  void doit(const A& a)
    {
      B(a);
    }
};


int
main()
{
  bar<int>	b;
  b.template doit<print>(2);
}