2010-04-07 Jb Evain <jbevain@novell.com>
[mcs.git] / ilasm / tests / test-override-1.il
blobf4970b1c5965da545305788882a98d9e67310537
1 // Test for "full" syntax of specifying overrides.
2 // This has non-generic types & methods
4 .assembly extern mscorlib
6   .ver 2:0:0:0
8 .assembly 'test-override-1'
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   
12                 63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01       ) 
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-1.dll'
20   .class private auto ansi beforefieldinit test
21         extends [mscorlib]System.Object
22         implements IFoo  {
23     
24     .method public final  virtual  hidebysig  newslot 
25            instance default void bar (string si)  cil managed 
26     {
27         .override method instance void class IFoo::foo(string)
28         
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     } 
43   } 
45   .class interface private auto ansi abstract IFoo
46   {
47     .method public virtual  hidebysig  newslot  abstract 
48            instance default void foo (string s)  cil managed 
49     {
50         
51     } 
52   }