flush
[mcs.git] / ilasm / tests / test-31.il
blob19d7b454dc024080f2e6c0b6f347d918e455042a
1 //
2 // Mono.ILASM.Tests
3 //
4 // Author(s):
5 //  Jackson Harper (Jackson@LatitudeGeo.com)
6 //
7 // (C) 2003 Jackson Harper, All rights reserved
8 //
9 .assembly extern corlib { }
11 .namespace Mono.ILASM.Tests {
13            .class public PropertyTest {
15                   .method public int32 get_foo ()
16                   {
17                           ldc.i4.1
18                           ret
19                   }
21                   .method public void set_foo (int32)
22                   {
23                           ret
24                   }
26                   .method public void other_foo ()
27                   {
28                           ret
29                   }
31                   .method static public int32 get_static_foo ()
32                   {
33                           ldc.i4.1
34                           ret
35                   }
37                   .method static public void set_static_foo (int32)
38                   {
39                           ret
40                   }
42                   .method static public void other_static_foo ()
43                   {
44                           ret
45                   }
47                   .property int32 foo (int32) = int32 (0xFFFFFFFF)
48                   {
49                         .get instance int32 Mono.ILASM.Tests.PropertyTest::get_foo ()
50                         .set instance void Mono.ILASM.Tests.PropertyTest::set_foo (int32)
51                         .other instance void Mono.ILASM.Tests.PropertyTest::other_foo () 
52                   }
54                   .property int32 static_foo ()
55                   {
56                           .get int32 Mono.ILASM.Tests.PropertyTest::get_static_foo ()
57                           .set int32 Mono.ILASM.Tests.PropertyTest::set_static_foo (int32)
58                           .other void Mono.ILASM.Tests.PropertyTest::other_foo ()
59                   }
60            }