[eglib] In AIX/generic POSIX, handle null addresses better (#17892)
[mono-project.git] / mcs / tests / dtest-045.cs
blob712fd61d89914e841d5fb88efbebf98a7b3e12c9
1 using System;
3 class Test
5 public static int Main ()
7 dynamic index = (uint) int.MaxValue + 1;
8 dynamic array = new int[] { 1, 2 };
10 try {
11 var a = array [index];
12 return 1;
13 } catch (System.OverflowException) {
16 try {
17 array[ulong.MaxValue] = 1;
18 return 2;
19 } catch (System.OverflowException) {
22 return 0;