Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-dictinit-03.cs
1 using System;
2
3 class C
4 {
5         int[,] a = new int [2, 3];
6
7         static int Main ()
8         {
9                 var res = new C { a = { [1, 1] = 11, [0, 2] = 2} };
10                 if (res.a [1, 1] != 11)
11                         return 1;
12
13                 if (res.a [1, 2] != 0)
14                         return 2;
15
16                 if (res.a [0, 2] != 2)
17                         return 3;
18
19                 Console.WriteLine ("ok");
20                 return 0;
21         }
22 }