diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/memtemp75.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/memtemp75.C | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/memtemp75.C b/gcc/testsuite/g++.old-deja/g++.pt/memtemp75.C new file mode 100644 index 000000000..54e8bc7bb --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/memtemp75.C @@ -0,0 +1,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); +} |