Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / delegate13.cs
1 using System;
2
3 public static class Program
4 {
5         public static int Main ()
6         {
7                 Action d1 = new Action (Method1);
8                 Action d2 = new Action (Method2);
9                 Action d12 = d1 + d2;
10                 Action d21 = d2 + d1;
11
12                 if (d1.Method.Name != "Method1")
13                         return 1;
14                 if (d2.Method.Name != "Method2")
15                         return 2;
16                 if (d12.Method.Name != "Method2")
17                         return 3;
18                 if (d21.Method.Name != "Method1")
19                         return 4;
20
21                 return 0;
22         }
23
24         public static void Method1 ()
25         {
26         }
27
28         public static void Method2 ()
29         {
30         }
31 }