Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-890.cs
1 using System;
2
3 interface Iface
4 {
5         int A { get; }
6
7         void B ();
8
9         event Action C;
10
11         void D (int a, string b);
12
13         string E { get; }
14 }
15
16 class X
17 {
18         public static int Main ()
19         {
20                 var res = typeof(Iface).GetMembers ();
21
22                 // Ensure metadata order matches source code order
23
24                 if (res [0].Name != "get_A")
25                         return 1;
26
27                 if (res [1].Name != "B")
28                         return 2;
29
30                 if (res [2].Name != "add_C")
31                         return 3;
32
33                 if (res [3].Name != "remove_C")
34                         return 4;
35
36                 if (res [4].Name != "D")
37                         return 5;
38
39                 if (res [5].Name != "get_E")
40                         return 6;
41
42                 return 0;
43         }
44 }