From e5030c6c557b7f8efdb5b6be432d175daa8a69ef Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Tue, 19 May 1998 15:43:24 +0000 Subject: [PATCH] Add test From-SVN: r19884 --- .../g++.old-deja/g++.other/overload2.C | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.other/overload2.C 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 (); +} -- 2.30.2