From 36096ac71b83a57443dad20f64f4b2f602c94cf1 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Fri, 3 Sep 1999 00:23:55 +0000 Subject: [PATCH] Readd file From-SVN: r29071 --- gcc/testsuite/g++.old-deja/g++.other/cond1.C | 26 +++++++++++++++ gcc/testsuite/g++.old-deja/g++.other/cond2.C | 33 ++++++++++++++------ 2 files changed, 50 insertions(+), 9 deletions(-) create mode 100644 gcc/testsuite/g++.old-deja/g++.other/cond1.C diff --git a/gcc/testsuite/g++.old-deja/g++.other/cond1.C b/gcc/testsuite/g++.old-deja/g++.other/cond1.C new file mode 100644 index 00000000000..c025beb3ffd --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/cond1.C @@ -0,0 +1,26 @@ +// Build don't run: +// Origin: Mark Mitchell + +template +void f (T&) ; + +template <> +void f (void (&)()) +{ +} + +void g () +{ +} + +void h () +{ +} + +bool b; + +int main () +{ + f (b ? g : h); +} + diff --git a/gcc/testsuite/g++.old-deja/g++.other/cond2.C b/gcc/testsuite/g++.old-deja/g++.other/cond2.C index a83273fa674..c025beb3ffd 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/cond2.C +++ b/gcc/testsuite/g++.old-deja/g++.other/cond2.C @@ -1,11 +1,26 @@ -// Build don't link: -// Origin: Loring Holden +// Build don't run: +// Origin: Mark Mitchell -class Wpt {}; +template +void f (T&) ; + +template <> +void f (void (&)()) +{ +} + +void g () +{ +} + +void h () +{ +} + +bool b; + +int main () +{ + f (b ? g : h); +} -class RAYhit { - protected: - Wpt _nearpt; - public: - Wpt surf () const { return true ? Wpt(): _nearpt; } -}; -- 2.30.2