[eglib] In AIX/generic POSIX, handle null addresses better (#17892)
[mono-project.git] / mcs / tests / test-369.cs
blob5fa2f9ce434d44644f937fd6edd7d006717250dd
1 class Test {
2 static int count;
4 static public bool operator == (Test x, Test y)
6 ++count;
7 return false;
10 static public bool operator != (Test x, Test y) { return true; }
12 public override bool Equals (object o) { return false; }
14 public override int GetHashCode () { return 0; }
16 public static void Main ()
18 Test y = new Test ();
19 if (y == null)
20 throw new System.Exception ();
21 if (count != 1)
22 throw new System.Exception ("Operator == was not called");