New test.
authorMarek Safar <marek.safar@gmail.com>
Mon, 5 Jul 2010 17:29:06 +0000 (17:29 -0000)
committerMarek Safar <marek.safar@gmail.com>
Mon, 5 Jul 2010 17:29:06 +0000 (17:29 -0000)
svn path=/trunk/mcs/; revision=159912

mcs/tests/test-anon-94.cs [new file with mode: 0644]

diff --git a/mcs/tests/test-anon-94.cs b/mcs/tests/test-anon-94.cs
new file mode 100644 (file)
index 0000000..0c1dfa1
--- /dev/null
@@ -0,0 +1,30 @@
+using System;
+
+class Program
+{
+       public class BaseClass
+       {
+               public int i;
+               public virtual void Print () { Console.WriteLine ("BaseClass.Print"); i = 90; }
+       }
+
+       public class Derived : BaseClass
+       {
+               public override void Print ()
+               {
+                       Action a = () => base.Print ();
+                       a ();
+               }
+       }
+
+       public static int Main ()
+       {
+               var d = new Derived ();
+               d.Print ();
+
+               if (d.i != 90)
+                       return 1;
+
+               return 0;
+       }
+}