This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
[mono.git] / mcs / ilasm / tests / generics-a.il
1
2 .namespace Mono.ILASM.Test {
3
4         .class public GenComp<T> extends [mscorlib]System.Object {
5
6                 .constraint !0 is class [mscorlib]System.IComparable
7
8                 .method public void .ctor ()
9                 {
10
11                 }
12                 
13                 .method int32 Compare (!0 a, !0 b)
14                 {
15                         ldarg.0
16                         ldarg.1
17                         ldarg.2
18                         callvirt int32 [mscorlib]System.IComparable::Compare (!0, !0)
19                         ret
20                 }
21         }
22
23         .class public Driver extends [mscorlib]System.Object {
24
25                 .method public static int32 Main ()
26                 {
27                         .entrypoint
28                         .locals init (class Mono.ILASM.Test.GenComp<int32>)
29
30                         newobj instance void class Mono.ILASM.Test.GenComp<int32>::.ctor ()
31                         stloc.0
32
33                         ldloc.0
34                         ldc.i4.1
35                         ldc.i4.1
36                         callvirt instance int32 class Mono.ILASM.Test.GenComp<int32>::Compare (int32, int32)
37
38                         ret
39                 }
40         }
41
42 }
43