Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-217.cs
1 using System;
2 public class Test {
3     public static int Main () {
4         object val1  = compare_gte(0, 0);
5         object val2  = compare_gte(1, 0);
6         object val3  = compare_gte(0, 1);
7         object val4  = compare_lte(0, 0);
8         object val5  = compare_lte(1, 0);
9         object val6  = compare_lte(0, 1);
10         bool b;
11        
12         b = (true == (bool) val1);
13         if (b == false)
14         {
15            return 1;
16         }
17         
18         b = (true == (bool) val2);
19         if (b == false)
20         {
21            return 2;
22         }
23
24         b = (true == (bool) val3);
25         if (b == true)
26         {
27            return 3;
28         }
29
30         b = (true == (bool) val4);
31         if (b == false)
32         {
33            return 4;
34         }
35
36         b = (true == (bool) val5);
37         if (b == true)
38         {
39            return 5;
40         }
41
42         b = (true == (bool) val6);
43         if (b == false)
44         {
45            return 6;
46         }
47
48         return 0;
49    }
50
51    static object compare_gte(int a, int b)
52    {
53        return a >= b;
54    }
55    static object compare_lte(int a, int b)
56    {
57        return a <= b;
58    }
59 }
60