Reenable AOT, it wasn't enabled on the x86 buildbot anyway.
[mcs.git] / tests / test-31.cs
blobc7c31fed25ee2bdf562807ef01d28704886b744e
1 //
2 // Versioning test: make sure that we output a warning, but still call the derived
3 // method
4 //
5 using System;
7 class Base {
8 public int which;
10 public virtual void A ()
12 which = 1;
16 class Derived :Base {
17 public virtual void A ()
19 which = 2;
23 class Test {
24 static int Main ()
26 Derived d = new Derived ();
29 // This should call Derived.A and output a warning.
31 d.A ();
34 if (d.which == 1)
35 return 1;
37 Console.WriteLine ("Test passes");
39 return 0;