Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gtest-382.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0ae654fa0b0e3ed931acdd8ed07b455ffc25b864 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;

class C
{
	public static int Main ()
	{
		int? i = 1;
		try {
			i = checked(int.MaxValue + i);
			return 1;
		} catch (OverflowException)	{
			return 0;
		}
	}
}