Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

41 lines
543 B
C#

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;
}
}