2010-04-06 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-358.cs
blob854d7ca3d4141cb648e6d456250b89ab0a545bb9
1 // Tests broken equality and inequality operators
3 using System;
5 struct Foo
7 public static bool operator == (Foo d1, Foo d2)
9 throw new ApplicationException ();
12 public static bool operator != (Foo d1, Foo d2)
14 throw new ApplicationException ();
18 public class Test
20 static Foo ctx;
22 public static void Main ()
24 if (ctx == null)
25 return;
27 if (ctx != null)
28 return;