Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / event-il.il
1 .assembly extern mscorlib
2 {
3   .ver 1:0:5000:0
4   .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
5 }
6 .assembly 'event'
7 {
8   .hash algorithm 0x00008004
9   .ver  0:0:0:0
10 }
11 .module event.exe // GUID = {7A082A08-017B-4BB9-BDD9-105E86FCC135}
12
13
14   .class public auto ansi beforefieldinit T
15         extends [mscorlib]System.Object
16   {
17     .field  private static  class T/Do MyDo
18
19     // method line 1
20     .method public hidebysig  specialname  rtspecialname 
21            instance default void .ctor ()  cil managed 
22     {
23         // Method begins at RVA 0x20ec
24         // Code size 7 (0x7)
25         .maxstack 8
26         IL_0000:  ldarg.0 
27         IL_0001:  call instance void object::.ctor()
28         IL_0006:  ret 
29     } // end of method T::.ctor
30
31     // method line 2
32     .method public static  hidebysig  specialname 
33            default void add_MyDo (class T/Do 'value')  cil managed synchronized 
34     {
35         // Method begins at RVA 0x20f4
36         // Code size 22 (0x16)
37         .maxstack 8
38         IL_0000:  ldsfld class T/Do T::MyDo
39         IL_0005:  ldarg.0 
40         IL_0006:  call class [mscorlib]System.Delegate class [mscorlib]System.Delegate::Combine(class [mscorlib]System.Delegate, class [mscorlib]System.Delegate)
41         IL_000b:  castclass T/Do
42         IL_0010:  stsfld class T/Do T::MyDo
43         IL_0015:  ret 
44     } // end of method T::add_MyDo
45
46     // method line 3
47     .method public static  hidebysig  specialname 
48            default void remove_MyDo (class T/Do 'value')  cil managed synchronized 
49     {
50         // Method begins at RVA 0x210c
51         // Code size 22 (0x16)
52         .maxstack 8
53         IL_0000:  ldsfld class T/Do T::MyDo
54         IL_0005:  ldarg.0 
55         IL_0006:  call class [mscorlib]System.Delegate class [mscorlib]System.Delegate::Remove(class [mscorlib]System.Delegate, class [mscorlib]System.Delegate)
56         IL_000b:  castclass T/Do
57         IL_0010:  stsfld class T/Do T::MyDo
58         IL_0015:  ret 
59     } // end of method T::remove_MyDo
60
61     .method public static  hidebysig  specialname 
62            default void other1_MyDo (class T/Do 'value')  cil managed synchronized 
63     {
64         // Method begins at RVA 0x210c
65         // Code size 22 (0x16)
66         .maxstack 8
67         IL_0015:  ret 
68     } // end of method T::other1_MyDo
69
70     .method private static  hidebysig  specialname 
71            default void other2_MyDo (class T/Do 'value')  cil managed synchronized 
72     {
73         // Method begins at RVA 0x210c
74         // Code size 22 (0x16)
75         .maxstack 8
76         IL_0015:  ret 
77     } // end of method T::other2_MyDo
78
79     // method line 4
80     .method public static  hidebysig 
81            default void Main ()  cil managed 
82     {
83         // Method begins at RVA 0x2124
84         .entrypoint
85         // Code size 1 (0x1)
86         .maxstack 8
87         IL_0000:  ret 
88     } // end of method T::Main
89
90         .event T/Do MyDo
91         {
92                 .addon default void T::add_MyDo (class T/Do 'value') 
93                 .removeon default void T::remove_MyDo (class T/Do 'value') 
94                 .other default void T::other1_MyDo (class T/Do 'value') 
95                 .other default void T::other2_MyDo (class T/Do 'value') 
96         }
97   .class nested public auto ansi sealed Do
98         extends [mscorlib]System.MulticastDelegate
99   {
100
101     // method line 5
102     .method public hidebysig  specialname  rtspecialname 
103            instance default void .ctor (object 'object', native int 'method')  runtime managed 
104     {
105         // Method begins at RVA 0x0
106           // Disassembly of native methods is not supported
107     } // end of method Do::.ctor
108
109     // method line 6
110     .method public virtual  hidebysig  newslot 
111            instance default void Invoke ()  runtime managed 
112     {
113         // Method begins at RVA 0x0
114           // Disassembly of native methods is not supported
115     } // end of method Do::Invoke
116
117     // method line 7
118     .method public virtual  hidebysig  newslot 
119            instance default class [mscorlib]System.IAsyncResult BeginInvoke (class [mscorlib]System.AsyncCallback callback, object 'object')  runtime managed 
120     {
121         // Method begins at RVA 0x0
122           // Disassembly of native methods is not supported
123     } // end of method Do::BeginInvoke
124
125     // method line 8
126     .method public virtual  hidebysig  newslot 
127            instance default void EndInvoke (class [mscorlib]System.IAsyncResult result)  runtime managed 
128     {
129         // Method begins at RVA 0x0
130           // Disassembly of native methods is not supported
131     } // end of method Do::EndInvoke
132
133   } // end of class Do
134
135   } // end of class T
136