[Wasm] Fix memory override in mono_wasm_add_assembly
[mono-project.git] / mcs / tests / gtest-334.cs
blob37e5ac06a7a7fc63d6bf8d3e6491b9edf81132ec
1 using System;
3 public class Test
5 public delegate void DelegateA (bool b);
6 public delegate int DelegateB (int i);
8 static DelegateA dt;
9 static DelegateB dt2;
11 public static int Main ()
13 bool b = DelegateMethod == dt;
14 if (b)
15 return 1;
17 b = DelegateMethod != dt;
18 if (!b)
19 return 2;
21 b = dt2 == DelegateMethod;
22 if (b)
23 return 3;
25 Console.WriteLine ("OK");
26 return 0;
29 static void DelegateMethod (bool b)
33 static int DelegateMethod (int b)
35 return 4;