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

40
mcs/tests/gtest-545.cs Normal file
View File

@@ -0,0 +1,40 @@
using System;
public static class ApplicationContext
{
static bool Foo ()
{
return false;
}
public static int Main ()
{
bool? debugging = false;
debugging = debugging | Foo ();
bool res = debugging.Value;
if (res)
return 1;
debugging = true;
debugging = debugging & Foo ();
if (res)
return 2;
int? re = 3 + (short?) 7;
if (re != 10)
return 3;
int a = 2;
int b = 2;
int? c = (byte?)a + b;
if (c != 4)
return 4;
c = a + (ushort?)b;
if (c != 4)
return 5;
return 0;
}
}