Merge pull request #3522 from henricm/fix-csharp-compiler-path-windows
[mono.git] / mcs / ilasm / tests / generics-b.il
1 //
2 // Test instantiating a generic type
3 //
4
5 .assembly extern mscorlib { }
6
7
8 .namespace Mono.ILASM.Tests {
9
10            .class public Set<T> extends [mscorlib]System.Object {
11
12                 .method public instance void .ctor () cil managed
13                 {
14                         ldarg.0
15                         call instance void class [mscorlib]System.Object::.ctor()
16                         ret
17                 }
18            }
19
20            .class public GenericsB extends [mscorlib]System.Object {
21
22                   .method public static void Main ()
23                   {
24                         .entrypoint
25                         .locals init (class Mono.ILASM.Tests.Set<int32>)
26                   
27                         newobj instance void class Mono.ILASM.Tests.Set<int32>::.ctor ()
28                         stloc.0
29                         
30                         ldloc.0
31                         call void [mscorlib]System.Console::WriteLine (object)
32
33                         ret
34                   }
35                   
36            }
37
38 }
39