diff options
author | Mark Mitchell <mmitchel@gcc.gnu.org> | 1998-05-19 15:43:24 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1998-05-19 15:43:24 +0000 |
commit | e5030c6c557b7f8efdb5b6be432d175daa8a69ef (patch) | |
tree | f6b25196e0ecb883cf357c2d5b8fa43cbf754230 | |
parent | af02da670bfb62cf65c8eaaad0d2f3a5315d84f5 (diff) | |
download | gcc-e5030c6c557b7f8efdb5b6be432d175daa8a69ef.zip gcc-e5030c6c557b7f8efdb5b6be432d175daa8a69ef.tar.gz gcc-e5030c6c557b7f8efdb5b6be432d175daa8a69ef.tar.bz2 |
Add test
From-SVN: r19884
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/overload2.C | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/overload2.C b/gcc/testsuite/g++.old-deja/g++.other/overload2.C new file mode 100644 index 0000000..598f71c --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/overload2.C @@ -0,0 +1,24 @@ +// Build don't run: + +template <class T> +class ConstArray { +}; + +template <class T1, class T2> +void operator+(const ConstArray<T1>&, const ConstArray<T2>&) +{ +} + +template <class T1, class T2> +void operator+(const ConstArray<T1>&, T2); + +template <class T1, class T2> +void operator+(T1, const ConstArray<T2>&); + +const ConstArray<int> cai() { return ConstArray<int>(); } +const ConstArray<double> cad() { return ConstArray<double>(); } + +int main() +{ + cai () + cad (); +} |