From: Mark Mitchell Date: Fri, 3 Sep 1999 00:23:55 +0000 (+0000) Subject: Readd file X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=36096ac71b83a57443dad20f64f4b2f602c94cf1;p=gcc.git Readd file From-SVN: r29071 --- 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; } -};