summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp75.C
blob: 54e8bc7bb82649b1f03ba350b21ea9b41e489f4d (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
// { dg-do assemble  }

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.doit<print>(2);
}