Author: marek
Date: 2008-01-03 12:33:18 -0500 (Thu, 03 Jan 2008)
New Revision: 92194

Added:
   trunk/mcs/tests/gtest-358.cs
Log:
2008-01-03  Marek Safar  <[EMAIL PROTECTED]>

        A test for bug #351047
        


Added: trunk/mcs/tests/gtest-358.cs
===================================================================
--- trunk/mcs/tests/gtest-358.cs        2008-01-03 17:32:48 UTC (rev 92193)
+++ trunk/mcs/tests/gtest-358.cs        2008-01-03 17:33:18 UTC (rev 92194)
@@ -0,0 +1,30 @@
+// Tests broken equality and inequality operators
+
+using System;
+
+struct Foo
+{
+       public static bool operator == (Foo d1, Foo d2)
+       {
+               return false;
+       }
+               
+       public static bool operator != (Foo d1, Foo d2)
+       {
+               return true;
+       }
+}
+
+public class Test
+{
+       static Foo ctx;
+
+       public static void Main ()
+       {
+               if (ctx == null)
+                       return;
+               
+               if (ctx != null)
+                       return;
+       }
+}


Property changes on: trunk/mcs/tests/gtest-358.cs
___________________________________________________________________
Name: svn:eol-style
   + native

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to