diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/instantiate10.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/instantiate10.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/instantiate10.C b/gcc/testsuite/g++.old-deja/g++.pt/instantiate10.C new file mode 100644 index 000000000..7d922a87a --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/instantiate10.C @@ -0,0 +1,15 @@ +// { dg-do assemble } +// Origin: Neil Booth, from bug report #44 + +#include <iterator> + +template<class T> +struct X +{ +}; + +template<class T> +X<T> operator+(const X<T>&, const X<T>&); + +template<> +X<int> operator+<int>(const X<int>&, const X<int>&); |