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:
Diffstat (limited to 'mcs/tests/test-70.cs')
-rwxr-xr-xmcs/tests/test-70.cs48
1 files changed, 0 insertions, 48 deletions
diff --git a/mcs/tests/test-70.cs b/mcs/tests/test-70.cs
deleted file mode 100755
index 6fe8da995e8..00000000000
--- a/mcs/tests/test-70.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-//
-// Tests the right settings for overrides
-//
-
-class X {
-
- public virtual int A {
- get {
- return 1;
- }
- }
-
- public virtual int B ()
- {
- return 1;
- }
-}
-
-class Y : X {
- public override int A {
- get {
- return base.A + 2;
- }
- }
-
- public override int B ()
- {
- return base.B () + 1;
- }
-}
-
-class Z {
- static int Main ()
- {
- Y y = new Y ();
- X x = new X ();
-
- if (y.B () != 2)
- return 1;
- if (y.A != 3)
- return 2;
- if (x.A != 1)
- return 3;
- if (x.B () != 1)
- return 4;
- return 0;
- }
-}