[build] Fix warning (#4177)
[mono-project.git] / mcs / tests / test-dictinit-03.cs
blob6b44ec030ddb20df61d30d8ad6ca7302b39a1be1
1 using System;
3 class C
5 int[,] a = new int [2, 3];
7 static int Main ()
9 var res = new C { a = { [1, 1] = 11, [0, 2] = 2} };
10 if (res.a [1, 1] != 11)
11 return 1;
13 if (res.a [1, 2] != 0)
14 return 2;
16 if (res.a [0, 2] != 2)
17 return 3;
19 Console.WriteLine ("ok");
20 return 0;