From: Mark Mitchell Date: Tue, 19 May 1998 15:43:24 +0000 (+0000) Subject: Add test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e5030c6c557b7f8efdb5b6be432d175daa8a69ef;p=gcc.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 00000000000..598f71c821e --- /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 (); +}