diff options
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp46.C')
-rwxr-xr-x | gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp46.C | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp46.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp46.C new file mode 100755 index 0000000..2212a52 --- /dev/null +++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/memtemp46.C @@ -0,0 +1,20 @@ +// Build don't run: +// GROUPS passed templates membertemplates +template<class T, class U> +class A +{ +}; + +template<class U> +class A<float, U> +{ +public: + template <class V> + void func(V v1 = 0) {} +}; + +int main() +{ + A<float, int> a; + a.func("abc"); +} |