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

31 lines
457 B
C#

//
// Check unary minus.
//
using System;
class X {
public static int Main ()
{
short a = -32768;
int b = -2147483648;
long c = -9223372036854775808;
sbyte d = -128;
object o = -(2147483648);
if (o.GetType () != typeof (long))
return 1;
o = -(uint)2147483648;
Console.WriteLine (o.GetType ());
if (o.GetType () != typeof (long))
return 2;
uint ui = (1);
byte b1 = (int)(0x30);
byte b2 = (int)0x30;
return 0;
}
}