diff options
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp72.C')
-rwxr-xr-x | gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp72.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp72.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp72.C new file mode 100755 index 0000000..52332c6 --- /dev/null +++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp72.C @@ -0,0 +1,17 @@ +// Build don't link: + +template<class P> struct B +{ + template<class T> void f(T& t) { t = T(); } +}; + +enum ptype { t1, t2}; + +struct D : public B<ptype> +{ + void g(double& d) { f(d); } +}; + + +D d; + |