Cosmos/source/IL2CPU.Tests/Tests/TwoIfStatements/TwoIfStatements.cs

21 lines
No EOL
267 B
C#

class Program
{
static int Main()
{
int result = GetValue(false, true);
return result == 0xB0 ? 0 : 1;
}
public static int GetValue(bool a, bool b)
{
if (a)
{
return 0xA0;
}
if (b)
{
return 0xB0;
}
return 0x10;
}
}