[mini]Add test for PtrToStruct<T>
[mono.git] / mono / tests / interface-with-static-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 'repro'
7 {
8   .custom instance void class [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::'.ctor'() =  (
9                 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78   // ....T..WrapNonEx
10                 63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01       ) // ceptionThrows.
11
12   .hash algorithm 0x00008004
13   .ver  0:0:0:0
14 }
15 .module repro.exe // GUID = {BF27A528-3D7C-4A28-836C-06A36B2B26C9}
16
17
18   .class interface public auto ansi abstract IFace
19   {
20         .field  public static  initonly  int32 X
21
22     // method line 3
23     .method private static  specialname  rtspecialname 
24            default void '.cctor' ()  cil managed 
25     {
26         // Method begins at RVA 0x20f4
27         // Code size 8 (0x8)
28         .maxstack 8
29         IL_0000:  ldc.i4.s 0x0a
30         IL_0002:  stsfld int32 IFace::X
31         IL_0007:  ret 
32     } // end of method Foo::.cctor
33
34     // method line 1
35     .method public virtual  hidebysig  newslot  abstract 
36            instance default int32 Bla ()  cil managed 
37     {
38         // Method begins at RVA 0x0
39     } // end of method IFace::Bla
40
41   } // end of class IFace
42
43   .class public auto ansi beforefieldinit Foo
44         extends [mscorlib]System.Object
45         implements IFace  {
46
47     // method line 2
48     .method public hidebysig  specialname  rtspecialname 
49            instance default void '.ctor' ()  cil managed 
50     {
51         // Method begins at RVA 0x20ec
52         // Code size 7 (0x7)
53         .maxstack 8
54         IL_0000:  ldarg.0 
55         IL_0001:  call instance void object::'.ctor'()
56         IL_0006:  ret 
57     } // end of method Foo::.ctor
58
59     // method line 4
60     .method public final  virtual  hidebysig  newslot 
61            instance default int32 Bla ()  cil managed 
62     {
63         // Method begins at RVA 0x2100
64         // Code size 3 (0x3)
65         .maxstack 8
66         IL_0000:  ldc.i4.0
67         IL_0002:  ret 
68     } // end of method Foo::Bla
69
70   } // end of class Foo
71
72   .class private auto ansi beforefieldinit Driver
73         extends [mscorlib]System.Object
74   {
75
76     // method line 5
77     .method public hidebysig  specialname  rtspecialname 
78            instance default void '.ctor' ()  cil managed 
79     {
80         // Method begins at RVA 0x2104
81         // Code size 7 (0x7)
82         .maxstack 8
83         IL_0000:  ldarg.0 
84         IL_0001:  call instance void object::'.ctor'()
85         IL_0006:  ret 
86     } // end of method Driver::.ctor
87
88     // method line 6
89     .method private static  hidebysig 
90            default int32 Main ()  cil managed 
91     {
92         .entrypoint
93         .maxstack 3
94         .locals init (class Foo V_0)
95         newobj instance void class Foo::'.ctor'()
96         stloc.0 
97         ldloc.0 
98         callvirt instance int32 class Foo::Bla() 
99         ret 
100     }
101   }
102