2010-04-06 Jb Evain <jbevain@novell.com>
[mcs.git] / ilasm / tests / test-override-2.il
blob13c9437d686c0ed6d0c9b55d04ea9ecdb99db17d
1 // Test for "full" syntax of specifying overrides.
2 // This has method in a generic type
4 .assembly extern mscorlib
6   .ver 2:0:0:0
8 .assembly 'test-override-2'
10   .custom instance void class [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() =  (
11                 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78   // ....T..WrapNonEx
12                 63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01       ) // ceptionThrows.
14   .custom instance void class [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) =  (01 00 08 00 00 00 00 00 ) // ........
16   .ver  0:0:0:0
18 .module 'test-override-2.dll'
21   .class private auto ansi beforefieldinit test
22         extends [mscorlib]System.Object
23         implements class IFoo`1<string>  {
25     .method public final  virtual  hidebysig  newslot 
26            instance default void foo (class IFoo`1<string> _f)  cil managed 
27     {
28         .override method instance void class IFoo`1<string>::foo(class IFoo`1<string>)
29         .maxstack 8
30         IL_0000:  nop 
31         IL_0001:  ret 
32     }
34     .method public hidebysig  specialname  rtspecialname 
35            instance default void .ctor ()  cil managed 
36     {
37         .maxstack 8
38         IL_0000:  ldarg.0 
39         IL_0001:  call instance void object::.ctor()
40         IL_0006:  ret 
41     }
43   }
45   .class interface private auto ansi abstract IFoo`1<T>
46   {
47     .method public virtual  hidebysig  newslot  abstract 
48            instance default void foo (class IFoo`1<!T> _f)  cil managed 
49     {
50     }
52   }