merge r67228-r67235, r67237, r67251 and r67256-67259 to trunk (they are
[mono.git] / mcs / ilasm / tests / test-override-2.il
1 // Test for "full" syntax of specifying overrides.
2 // This has method in a generic type
3
4 .assembly extern mscorlib
5 {
6   .ver 2:0:0:0
7 }
8 .assembly 'test-override-2'
9 {
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.
13
14   .custom instance void class [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) =  (01 00 08 00 00 00 00 00 ) // ........
15
16   .ver  0:0:0:0
17 }
18 .module 'test-override-2.dll'
19
20
21   .class private auto ansi beforefieldinit test
22         extends [mscorlib]System.Object
23         implements class IFoo`1<string>  {
24
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     }
33
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     }
42
43   }
44
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     }
51
52   }