Fix DateTime.Now and CurrentTimeToUtc during DST transition time (#4172)
[mono-project.git] / mcs / tests / test-129.cs
blob4628f153711fb17221e356b1859c70baff8ada56
1 //
2 // Check unary minus.
3 //
4 using System;
6 class X {
8 public static int Main ()
10 short a = -32768;
11 int b = -2147483648;
12 long c = -9223372036854775808;
13 sbyte d = -128;
15 object o = -(2147483648);
16 if (o.GetType () != typeof (long))
17 return 1;
19 o = -(uint)2147483648;
20 Console.WriteLine (o.GetType ());
21 if (o.GetType () != typeof (long))
22 return 2;
24 uint ui = (1);
25 byte b1 = (int)(0x30);
26 byte b2 = (int)0x30;
28 return 0;