diff options
Diffstat (limited to 'mcs/tests/test-31.cs')
-rw-r--r-- | mcs/tests/test-31.cs | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/mcs/tests/test-31.cs b/mcs/tests/test-31.cs deleted file mode 100644 index c7c31fed25e..00000000000 --- a/mcs/tests/test-31.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -// Versioning test: make sure that we output a warning, but still call the derived -// method -// -using System; - -class Base { - public int which; - - public virtual void A () - { - which = 1; - } -} - -class Derived :Base { - public virtual void A () - { - which = 2; - } -} - -class Test { - static int Main () - { - Derived d = new Derived (); - - // - // This should call Derived.A and output a warning. - // - d.A (); - - - if (d.which == 1) - return 1; - - Console.WriteLine ("Test passes"); - - return 0; - } -} |