projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feaa2f2
)
Add test that fails
author
Miguel de Icaza
<miguel@gnome.org>
Tue, 12 Feb 2002 22:40:32 +0000
(22:40 -0000)
committer
Miguel 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]
patch
|
blob
diff --git a/mcs/tests/test-73.cs
b/mcs/tests/test-73.cs
new file mode 100755
(executable)
index 0000000..
2acf980
--- /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;
+ }
+}
+