From: Mark Mitchell Date: Tue, 19 May 1998 15:43:24 +0000 (+0000) Subject: Add test X-Git-Tag: prereleases/egcs-1.1-prerelease~1194 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e5030c6c557b7f8efdb5b6be432d175daa8a69ef;p=thirdparty%2Fgcc.git Add test From-SVN: r19884 --- 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 000000000000..598f71c821ef --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/overload2.C @@ -0,0 +1,24 @@ +// Build don't run: + +template +class ConstArray { +}; + +template +void operator+(const ConstArray&, const ConstArray&) +{ +} + +template +void operator+(const ConstArray&, T2); + +template +void operator+(T1, const ConstArray&); + +const ConstArray cai() { return ConstArray(); } +const ConstArray cad() { return ConstArray(); } + +int main() +{ + cai () + cad (); +}