mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
583 B
31 lines
583 B
namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty |
|
{ |
|
internal class ConstantsTests |
|
{ |
|
public ulong Issue1308(ulong u = 8uL) |
|
{ |
|
Test((u & uint.MaxValue) != 0); |
|
return 18446744069414584320uL; |
|
} |
|
|
|
public void Byte_BitmaskingInCondition(byte v) |
|
{ |
|
Test((v & 0xF) == 0); |
|
Test((v & 0x123) == 0); |
|
Test((v | 0xF) == 0); |
|
Test((v | 0x123) == 0); |
|
} |
|
|
|
public void SByte_BitmaskingInCondition(sbyte v) |
|
{ |
|
Test((v & 0xF) == 0); |
|
Test((v & 0x123) == 0); |
|
Test((v | 0xF) == 0); |
|
Test((v | 0x123) == 0); |
|
} |
|
|
|
private void Test(bool expr) |
|
{ |
|
} |
|
} |
|
}
|
|
|