This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
[mono.git] / mcs / tests / property-il.il
1 .assembly extern mscorlib
2 {
3   .ver 1:0:5000:0
4 }
5 .assembly 'property-il'
6 {
7   .hash algorithm 0x00008004
8   .ver  0:0:0:0
9 }
10 .module 'property-il.dll' // GUID = {CACC88BA-6ED4-45E0-8E59-C3ABEBA9753A}
11
12
13   .class public auto ansi beforefieldinit 'Foo'
14         extends [mscorlib]System.Object
15   {
16
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 () 
28
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' () 
39
40         .property specialname rtspecialname string Message ()
41         {
42                 .get instance default string 'Foo'::'Monkey_Jump' () 
43         }
44   } // end of type Foo
45
46   .class public auto ansi beforefieldinit 'Bar'
47         extends Foo
48   {
49
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 () 
61
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' () 
72
73         .property specialname rtspecialname string Message ()
74         {
75                 .get instance default string 'Bar'::'Boston' () 
76         }
77   } // end of type Bar