blob: c52aa545220490894530bb3b57150d47b7ab9a52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// CS0220: The operation overflows at compile time in checked mode
// Line: 10
// Compiler options: -unsafe
class TestClass
{
public unsafe static void Main ()
{
int* arr = null;
var i = arr[long.MaxValue];
}
}
|