Merge pull request #4403 from BrzVlad/fix-workers-par-context
[mono.git] / mono / tests / verifier / valid_ldftn_sealed_type_virtual_method.il
1 .assembly extern mscorlib
2 {
3   .ver 2:0:0:0
4   .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
5 }
6 .assembly 'delegate'
7 {
8   .hash algorithm 0x00008004
9   .ver  0:0:0:0
10 }
11 .module delegate.exe
12
13
14 .class public auto ansi beforefieldinit sealed Test extends [mscorlib]System.Object
15 {
16         .method public hidebysig  specialname  rtspecialname  instance default void .ctor ()  cil managed 
17     {
18                 .maxstack 8
19                 ldarg.0 
20                 call instance void object::.ctor()
21                 ret 
22         }
23
24         .method public hidebysig virtual instance default int32 Tst ()  cil managed 
25         {
26                 .maxstack 8
27                 ldc.i4.0 
28                 ret 
29         }
30 }
31
32 .class private auto ansi beforefieldinit Program extends [mscorlib]System.Object
33 {
34         .method public hidebysig  specialname  rtspecialname instance default void .ctor ()  cil managed 
35     {
36                 .maxstack 8
37                 ldarg.0 
38                 call instance void object::.ctor()
39                 ret 
40         }
41
42         .method private static  hidebysig default int32 Main ()  cil managed 
43         {
44                 .entrypoint
45                 .maxstack 4
46                 .locals init (
47                         class Test      V_0,
48                         class SimpleDelegate    V_1)
49
50                 newobj instance void class Test::.ctor()
51                 stloc.0 
52                 ldloc.0 
53                 ldftn instance int32 class Test::Tst()
54                 newobj instance void class SimpleDelegate::.ctor(object, native int)
55                 stloc.1 
56                 ldstr "OK"
57                 call void class [mscorlib]System.Console::WriteLine(string)
58                 ldc.i4.0 
59                 ret 
60         }
61 }
62
63 .class public auto ansi sealed SimpleDelegate extends [mscorlib]System.MulticastDelegate
64 {
65         .method public hidebysig  specialname  rtspecialname instance default void .ctor (object 'object', native int 'method')  runtime managed 
66         {
67         }
68
69         .method public virtual  hidebysig  newslot instance default int32 Invoke ()  runtime managed 
70         {
71         }
72
73         .method public virtual  hidebysig  newslot instance default class [mscorlib]System.IAsyncResult BeginInvoke (class [mscorlib]System.AsyncCallback callback, object 'object')  runtime managed 
74         {
75         }
76
77         .method public virtual  hidebysig  newslot instance default int32 EndInvoke (class [mscorlib]System.IAsyncResult result)  runtime managed 
78         {
79         }
80 }