[configure] Add new target.
[mono-project.git] / mcs / tests / test-named-01.cs
bloba87e76540516a3cf7d316a5308ab5f1fb38572a2
1 using System;
3 class A
5 public int Index;
7 public A ()
8 : this (x : 0)
12 protected A (object x)
16 public virtual int this [int i] {
17 set {
18 Index = value;
23 class B : A
25 public B ()
26 : base (x : "x")
30 public override int this [int i] {
31 set {
32 base [i : i] = value + 4;
37 class XAttribute:Attribute
39 public XAttribute (int h)
44 [X (h : 3)]
45 class M
47 static void Foo (int a)
51 public static int Main ()
53 Foo (a : -9);
55 B b = new B ();
56 b [8] = 5;
57 if (b.Index != 9)
58 return 1;
60 Console.WriteLine ("ok");
61 return 0;