Remove allocations from Dns.* (dotnet/corefx#41061)
[mono-project.git] / mono / tests / decimal-array.cs
blobbeb0079718d625ce1d8f5a5f4576c3f10ab842d9
1 using System;
3 class Test
5 public static int Main()
7 decimal[,] tab = new decimal[2,2] {{3,4},{5,6}};
8 bool b1 = false;
9 decimal d;
11 try {
12 d = tab[1,2];
13 } catch (Exception e) {
14 b1 = true;
17 if (!b1)
18 return 1;
20 d = tab[1,1];
21 if (d != 6)
22 return 1;
24 return 0;