aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>1999-09-03 00:24:24 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-09-03 00:24:24 +0000
commit6aabeed2cb6997c61b6783a6e00054429e63bef8 (patch)
tree43e10aba51b15003f2baa77c56ca8bde38d90faa /gcc
parent36096ac71b83a57443dad20f64f4b2f602c94cf1 (diff)
downloadgcc-6aabeed2cb6997c61b6783a6e00054429e63bef8.zip
gcc-6aabeed2cb6997c61b6783a6e00054429e63bef8.tar.gz
gcc-6aabeed2cb6997c61b6783a6e00054429e63bef8.tar.bz2
Readd file
From-SVN: r29072
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/cond2.C33
1 files 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 c025beb..a83273f 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 <mark@codesourcery.com>
+// Build don't link:
+// Origin: Loring Holden <lsh@cs.brown.edu>
-template <class T>
-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; }
+};