Add test that fails
authorMiguel de Icaza <miguel@gnome.org>
Tue, 12 Feb 2002 22:40:32 +0000 (22:40 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Tue, 12 Feb 2002 22:40:32 +0000 (22:40 -0000)
svn path=/trunk/mcs/; revision=2360

mcs/tests/test-73.cs [new file with mode: 0755]

diff --git a/mcs/tests/test-73.cs b/mcs/tests/test-73.cs
new file mode 100755 (executable)
index 0000000..2acf980
--- /dev/null
@@ -0,0 +1,28 @@
+//
+// This test is used to test that we do not use the .override
+// command on abstract method implementations.
+//
+
+public abstract class Abstract {
+       public abstract int A ();
+}
+
+public class Concrete : Abstract {
+       public override int A () {
+               return 1;
+       }
+}
+
+class Test {
+
+       static int Main ()
+       {
+               Concrete c = new Concrete ();
+
+               if (c.A () != 1)
+                       return 1;
+
+               return 0;
+       }
+}
+