Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/memtemp75.C

raw
1 // { dg-do assemble }
2
3 void
4 print(const int& i)
5 {
6 }
7
8 template<class A>
9 class bar
10 {
11 public:
12 template<void (*B)(const A& a)>
13 void doit(const A& a)
14 {
15 B(a);
16 }
17 };
18
19
20 int
21 main()
22 {
23 bar<int> b;
24 b.doit<print>(2);
25 }