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

test-485.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7892fb6b540bff0304bc35d2e8e98854d792a541 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Compiler options: -checked

using System;

public class MonoBUG
{
	public static int Main ()
	{
		long l = long.MaxValue;
		
		try {
			l *= 2;
			return 1;
		} catch (OverflowException) {
		}
		
		return 0;
	}
}