Xamarin Public Jenkins f3e3aab35a Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
2016-02-22 11:00:01 -05:00

38 lines
405 B
C#

using System;
class MainClass
{
public static int Main ()
{
var res = XX () | YY();
if (!res.Value)
return 1;
if (xx != 1)
return 2;
if (yy != 1)
return 2;
return 0;
}
static int xx;
static bool XX ()
{
++xx;
Console.WriteLine ("XX");
return true;
}
static int yy;
static bool? YY ()
{
if (xx == 1)
++yy;
Console.WriteLine ("YY");
return true;
}
}