Fix LLVM linker flags for 6.0.
[mono-project.git] / mcs / tests / test-644.cs
blob6051d12816fb29e720e656c63524380109a76235
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 public 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;