2010-05-19 Jb Evain <jbevain@novell.com>
[mcs.git] / ilasm / tests / generics-c.il
blob71595d39e00dddc8567d50c5ee97300fbd2e1d76
1 //
2 // Test a generic type type param field
3 //
5 .assembly extern mscorlib { }
8 .namespace Mono.ILASM.Tests {
10            .class public Set<T> extends [mscorlib]System.Object {
12                   .field public !0 val
14                 .method public instance void .ctor () {
15                         ret
16                 }
17            }
19            .class public Driver extends [mscorlib]System.Object {
21                   .method public static void Main ()
22                   {
23                         .entrypoint
24                         .locals init (class Mono.ILASM.Tests.Set<int32>)
26                         newobj instance void class Mono.ILASM.Tests.Set<int32>::.ctor ()
27                         stloc.0
28                         
29                         ldloc.0
30                         ldc.i4.1
31                         stfld int32 class Mono.ILASM.Tests.Set<int32>::val
33                         ldloc.0
34                         ldfld int32 class Mono.ILASM.Tests.Set<int32>::val
35                         call void [mscorlib]System.Console::WriteLine (int32)
37                         ret
38                   }
40            }