Readd file
authorMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 3 Sep 1999 00:23:55 +0000 (00:23 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 3 Sep 1999 00:23:55 +0000 (00:23 +0000)
From-SVN: r29071

gcc/testsuite/g++.old-deja/g++.other/cond1.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.other/cond2.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 (file)
index 0000000..c025beb
--- /dev/null
@@ -0,0 +1,26 @@
+// Build don't run:
+// Origin: Mark Mitchell <mark@codesourcery.com>
+
+template <class T>
+void f (T&) ;
+
+template <>
+void f (void (&)()) 
+{
+}
+
+void g () 
+{
+}
+
+void h ()
+{
+}
+
+bool b;
+
+int main ()
+{
+  f (b ? g : h);
+}
+
index a83273fa6749585e81c4b5ea9a84df5f28618988..c025beb3ffd80aad8936f4f836199835b5e246c4 100644 (file)
@@ -1,11 +1,26 @@
-// Build don't link:
-// Origin: Loring Holden <lsh@cs.brown.edu>
+// Build don't run:
+// Origin: Mark Mitchell <mark@codesourcery.com>
 
-class Wpt {};
+template <class T>
+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; } 
-};