Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

60
mcs/tests/test-217.cs Normal file
View File

@@ -0,0 +1,60 @@
using System;
public class Test {
public static int Main () {
object val1 = compare_gte(0, 0);
object val2 = compare_gte(1, 0);
object val3 = compare_gte(0, 1);
object val4 = compare_lte(0, 0);
object val5 = compare_lte(1, 0);
object val6 = compare_lte(0, 1);
bool b;
b = (true == (bool) val1);
if (b == false)
{
return 1;
}
b = (true == (bool) val2);
if (b == false)
{
return 2;
}
b = (true == (bool) val3);
if (b == true)
{
return 3;
}
b = (true == (bool) val4);
if (b == false)
{
return 4;
}
b = (true == (bool) val5);
if (b == true)
{
return 5;
}
b = (true == (bool) val6);
if (b == false)
{
return 6;
}
return 0;
}
static object compare_gte(int a, int b)
{
return a >= b;
}
static object compare_lte(int a, int b)
{
return a <= b;
}
}