Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2002-02-13 01:40:32 +0300
committerMiguel de Icaza <miguel@gnome.org>2002-02-13 01:40:32 +0300
commitc1a370c8c2d331928d53533c6c388096711d6e38 (patch)
tree1444de436f9b2b1e7440a0b5a7346e5c2393c012 /mcs/tests/test-73.cs
parentfeaa2f229faac8dc4043b42f62ea4416b9788ae7 (diff)
Add test that fails
svn path=/trunk/mcs/; revision=2360
Diffstat (limited to 'mcs/tests/test-73.cs')
-rwxr-xr-xmcs/tests/test-73.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/mcs/tests/test-73.cs b/mcs/tests/test-73.cs
new file mode 100755
index 00000000000..2acf9806895
--- /dev/null
+++ b/mcs/tests/test-73.cs
@@ -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;
+ }
+}
+