In class/Microsoft.Build.Tasks:
[mcs.git] / tests / test-369.cs
blobc20adfe27ccbfa600c3e533eb9df4941af3311e5
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 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");