2010-04-07 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / property-il.il
blob7115547feb6e83dcb005210ac2530929d978eafb
1 .assembly extern mscorlib
3   .ver 1:0:5000:0
5 .assembly 'property-il'
7   .hash algorithm 0x00008004
8   .ver  0:0:0:0
10 .module 'property-il.dll' // GUID = {CACC88BA-6ED4-45E0-8E59-C3ABEBA9753A}
13   .class public auto ansi beforefieldinit 'Foo'
14         extends [mscorlib]System.Object
15   {
17     // method line 1
18     .method public hidebysig  specialname  rtspecialname 
19            instance default void .ctor ()  cil managed 
20     {
21         // Method begins at RVA 0x20ec
22         // Code size 7 (0x7)
23         .maxstack 8
24         IL_0000:  ldarg.0 
25         IL_0001:  call instance void valuetype [mscorlib]'System.Object'::.ctor()
26         IL_0006:  ret 
27     } // end of method Foo::instance default void .ctor () 
29     // method line 2
30     .method public virtual  hidebysig  newslot  specialname 
31            instance default string 'Monkey_Jump' ()  cil managed 
32     {
33         // Method begins at RVA 0x20f4
34         // Code size 6 (0x6)
35         .maxstack 8
36         IL_0000:  ldstr "foo"
37         IL_0005:  ret 
38     } // end of method Foo::instance default string 'Monkey_Jump' () 
40         .property specialname rtspecialname string Message ()
41         {
42                 .get instance default string 'Foo'::'Monkey_Jump' () 
43         }
44   } // end of type Foo
46   .class public auto ansi beforefieldinit 'Bar'
47         extends Foo
48   {
50     // method line 3
51     .method public hidebysig  specialname  rtspecialname 
52            instance default void .ctor ()  cil managed 
53     {
54         // Method begins at RVA 0x20fb
55         // Code size 7 (0x7)
56         .maxstack 8
57         IL_0000:  ldarg.0 
58         IL_0001:  call instance void class 'Foo'::.ctor()
59         IL_0006:  ret 
60     } // end of method Bar::instance default void .ctor () 
62     // method line 4
63     .method public virtual  hidebysig  specialname 
64            instance default string 'Boston' ()  cil managed 
65     {
66         // Method begins at RVA 0x2103
67         // Code size 6 (0x6)
68         .maxstack 8
69         IL_0000:  ldstr "bar"
70         IL_0005:  ret 
71     } // end of method Bar::instance default string 'Boston' () 
73         .property specialname rtspecialname string Message ()
74         {
75                 .get instance default string 'Bar'::'Boston' () 
76         }
77   } // end of type Bar
78   
79 .class public auto ansi beforefieldinit C
80        extends [mscorlib]System.Object
82   .method public hidebysig specialname instance int32 
83           get_Value() cil managed
84   {
85     .maxstack  1
86     .locals init (int32 V_0)
87     IL_0000:  ldc.i4.3
88     IL_0001:  stloc.0
89     IL_0002:  br.s       IL_0004
91     IL_0004:  ldloc.0
92     IL_0005:  ret
93   }
95   .method public hidebysig specialname instance void 
96           add_Arg(bool arg) cil managed
97   {
98     .maxstack  0
99     IL_0000:  ret
100   }
102   .method public hidebysig specialname rtspecialname 
103           instance void  .ctor() cil managed
104   {
105     .maxstack  1
106     IL_0000:  ldarg.0
107     IL_0001:  call       instance void [mscorlib]System.Object::.ctor()
108     IL_0006:  ret
109   }
112