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:
authorRaja R Harinath <harinath@hurrynot.org>2004-09-07 13:51:02 +0400
committerRaja R Harinath <harinath@hurrynot.org>2004-09-07 13:51:02 +0400
commit779ec570c26faaa5f94e6013d8720f5f6ae0c06c (patch)
tree6e1e571af44e2625d2f82f09231f985ab240d9a1
parente4da82786db9da5f440430917171ba477275e0fb (diff)
* cs0571-3.cs, CS0571-3-lib.cs: New tests for #59980.
* Makefile: Update list of dlls. svn path=/trunk/mcs/; revision=33484
-rw-r--r--mcs/errors/CS0571-3-lib.cs12
-rw-r--r--mcs/errors/ChangeLog5
-rw-r--r--mcs/errors/Makefile5
-rw-r--r--mcs/errors/cs0571-3.cs15
4 files changed, 35 insertions, 2 deletions
diff --git a/mcs/errors/CS0571-3-lib.cs b/mcs/errors/CS0571-3-lib.cs
new file mode 100644
index 00000000000..c45119b0d73
--- /dev/null
+++ b/mcs/errors/CS0571-3-lib.cs
@@ -0,0 +1,12 @@
+// Testcase for bug #59980
+
+namespace Test {
+ public abstract class C0 {
+ public abstract int foo { get; }
+ }
+ public abstract class C1 : C0 {
+ }
+ public class C2 : C1 {
+ public override int foo { get { return 0; } }
+ }
+}
diff --git a/mcs/errors/ChangeLog b/mcs/errors/ChangeLog
index 6adfddaccaf..3a804ffeb4a 100644
--- a/mcs/errors/ChangeLog
+++ b/mcs/errors/ChangeLog
@@ -1,3 +1,8 @@
+2004-09-07 Raja R Harinath <rharinath@novell.com>
+
+ * cs0571-3.cs, CS0571-3-lib.cs: New tests for #59980.
+ * Makefile: Update list of dlls.
+
2004-09-03 Marek Safar <marek.safar@seznam.cz>
* 8 new error tests.
diff --git a/mcs/errors/Makefile b/mcs/errors/Makefile
index 5c28bfc5c49..8bb5bd00d11 100644
--- a/mcs/errors/Makefile
+++ b/mcs/errors/Makefile
@@ -27,8 +27,9 @@ DISTFILES = \
test-everything: run-test-local
#all-local: run-test-local test-multi-local
-all-local: CS0618-2-lib.dll CS0619-8-lib.dll CS0619-17-lib.dll CS0619-32-lib.dll CS0619-33-lib.dll CS0619-36-lib.dll \
-CS3005-16-lib.dll CS3013-module.dll
+all-local: CS0571-3-lib.dll CS0618-2-lib.dll \
+ CS0619-8-lib.dll CS0619-17-lib.dll CS0619-32-lib.dll CS0619-33-lib.dll CS0619-36-lib.dll \
+ CS3005-16-lib.dll CS3013-module.dll
test-local:
diff --git a/mcs/errors/cs0571-3.cs b/mcs/errors/cs0571-3.cs
new file mode 100644
index 00000000000..6866d190649
--- /dev/null
+++ b/mcs/errors/cs0571-3.cs
@@ -0,0 +1,15 @@
+// cs0571.cs: cannot explicitly call operator or accessor
+// Line: 12
+// Compiler options: -r:CS0571-3-lib.dll
+
+// Testcase for bug #59980
+
+using Test;
+
+public class EntryPoint {
+ public static int Main () {
+ C1 foo = new C2 ();
+ return foo.get_foo ();
+ }
+}
+