New test.
[mono.git] / mcs / tests / gtest-358.cs
1 // Tests broken equality and inequality operators
2
3 using System;
4
5 struct Foo
6 {
7         public static bool operator == (Foo d1, Foo d2)
8         {
9                 throw new ApplicationException ();
10         }
11                 
12         public static bool operator != (Foo d1, Foo d2)
13         {
14                 throw new ApplicationException ();      
15         }
16 }
17
18 public class Test
19 {
20         static Foo ctx;
21
22         public static void Main ()
23         {
24                 if (ctx == null)
25                         return;
26                 
27                 if (ctx != null)
28                         return;
29         }
30 }