From 6aabeed2cb6997c61b6783a6e00054429e63bef8 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Fri, 3 Sep 1999 00:24:24 +0000 Subject: [PATCH] Readd file From-SVN: r29072 --- gcc/testsuite/g++.old-deja/g++.other/cond2.C | 33 ++++++-------------- 1 file changed, 9 insertions(+), 24 deletions(-) diff --git a/gcc/testsuite/g++.old-deja/g++.other/cond2.C b/gcc/testsuite/g++.old-deja/g++.other/cond2.C index c025beb3ffd8..a83273fa6749 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/cond2.C +++ b/gcc/testsuite/g++.old-deja/g++.other/cond2.C @@ -1,26 +1,11 @@ -// Build don't run: -// Origin: Mark Mitchell +// Build don't link: +// Origin: Loring Holden -template -void f (T&) ; - -template <> -void f (void (&)()) -{ -} - -void g () -{ -} - -void h () -{ -} - -bool b; - -int main () -{ - f (b ? g : h); -} +class Wpt {}; +class RAYhit { + protected: + Wpt _nearpt; + public: + Wpt surf () const { return true ? Wpt(): _nearpt; } +};