[corlib] Make Marshal.BufferToBSTR(Array, int) non-public again (#5670)
[mono.git] / mcs / tests / gtest-334.cs
1 using System;
2
3 public class Test
4 {
5         public delegate void DelegateA (bool b);
6         public delegate int DelegateB (int i);
7
8         static DelegateA dt;
9         static DelegateB dt2;
10
11         public static int Main ()
12         {
13                 bool b = DelegateMethod == dt;
14                 if (b)
15                         return 1;
16
17                 b = DelegateMethod != dt;
18                 if (!b)
19                         return 2;
20
21                 b = dt2 == DelegateMethod;
22                 if (b)
23                         return 3;
24
25                 Console.WriteLine ("OK");
26                 return 0;
27         }
28
29         static void DelegateMethod (bool b)
30         {
31         }
32
33         static int DelegateMethod (int b)
34         {
35                 return 4;
36         }
37 }
38
39