[mono-api-info] First filter, then order, and use ordinal comparison.
[mono-project.git] / mono / tests / bug-78656.cs
blob5ebafce8cc6965af754010101affeb115a345821
1 delegate void voi ();
3 class BasicValueTypesTest
5 static int trycatch (voi f) {
6 try {
7 f ();
8 return 1;
10 catch (System.OverflowException e) {
11 System.Console.WriteLine (e);
12 return 0;
17 static void foo1 () {
18 checked {
19 long x = System.Int64.MinValue;
20 long y = x - 1L;
24 static void foo2 () {
25 checked {
26 byte x = System.Byte.MaxValue;
27 ++x;
31 public static int Main () {
32 int result = 0;
34 result += trycatch (foo1);
35 result += trycatch (foo2);
37 return result;