* ResolvedReference.cs (.ctor): Set 'OriginalItemSpec' and 'ResolvedFrom',
[mcs.git] / tests / test-644.cs
blob801f03fb59d802c21e5b4770683f51ffefb4e5eb
1 using System;
3 class Program
5 public delegate object D (int member);
7 private D _value;
9 private object M (int member)
11 return null;
14 void Test_1 ()
16 Delegate d1 = M + _value;
17 Delegate d2 = _value + M;
20 public bool Test_2 ()
22 return _value == M;
25 public bool Test_3 ()
27 return _value != M;
30 public bool Test_4 (D d)
32 return d == _value;
35 static int Main ()
37 Program p = new Program ();
38 if (p.Test_2 ())
39 return 1;
40 p._value = p.M;
41 if (!p.Test_2 ())
42 return 2;
44 if (p.Test_3 ())
45 return 3;
47 Console.WriteLine ("OK");
48 return 0;