2010-06-03 Jb Evain <jbevain@novell.com>
[mcs.git] / ilasm / tests / gen-local.il
blob9fb08211f41c64dc7f5c5dc60613b2cc0bcac45f
1 // No entry in the TypeSpec table should be emitted for generic types (g<> and gen<>)
2 // referenced in local var sig as it(GenericInst) is emitted the sig itself, and not a TypeSpec token
4 .assembly extern mscorlib
6   .ver 2:0:0:0
8 .assembly extern one
12 .assembly 'gen-local'
14   .custom instance void class [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() =  (
15                 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78   // ....T..WrapNonEx
16                 63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01       ) // ceptionThrows.
18   .ver  0:0:0:0
20 .module 'gen-local.exe'
22   .class private auto ansi beforefieldinit g`1<T>
23         extends [mscorlib]System.Object
24   {
25     .method public hidebysig  specialname  rtspecialname 
26            instance default void .ctor ()  cil managed 
27     {
28         .maxstack 8
29         IL_0000:  ldarg.0 
30         IL_0001:  call instance void object::.ctor()
31         IL_0006:  ret 
32     }
33   }
35   .class private auto ansi beforefieldinit test
36         extends [mscorlib]System.Object
37   {
38     .method public static  hidebysig 
39            default void Main ()  cil managed 
40     {
41         .entrypoint
42         .maxstack 3
43         .locals init (
44                 class g`1<string> V_0,
45                 class [one]gen`1<string> V_1)
46         IL_0010:  ret 
47     }
49   }