[configure] Add new target.
[mono-project.git] / mcs / tests / test-834.cs
blob97aeb505378b2921b1db059ec1d6ee1f9a22749c
1 using System;
3 class A
5 public int Value;
7 public A (object o)
9 Value = 500;
12 protected A (int a)
14 Value = a;
17 public int Test (object o)
19 return 2;
22 protected int Test(int i)
24 return 5;
27 protected int this [int i] {
28 get { return i; }
31 public int this [object i] {
32 get {
33 return 2;
38 class B : A
40 public B ()
41 : base (1)
45 public static int Main ()
47 int r;
48 A a = new A (1);
49 if (a.Value != 500)
50 return 1;
52 r = a.Test (1);
53 if (r != 2)
54 return 2;
56 r = a [0];
57 if (r != 2)
58 return 3;
60 Console.WriteLine ("ok");
61 return 0;