diff options
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/instantiate2.C')
-rwxr-xr-x | gcc_arm/testsuite/g++.old-deja/g++.pt/instantiate2.C | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/instantiate2.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/instantiate2.C new file mode 100755 index 0000000..a5c6c49 --- /dev/null +++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/instantiate2.C @@ -0,0 +1,12 @@ +// Build don't link: + +template<class T> +struct X_two { + template <class T2> T2 conv_compare_ge(T2 test) { + T2 tmp_value = T2 (0); + return (tmp_value > test ? tmp_value : test); + } +}; + +template int X_two<double>::conv_compare_ge(int); + |