In class/Microsoft.Build.Tasks:
[mcs.git] / tests / test-130.cs
blob6403fbcdfbd8af22c8a1288125f8467c0abeb001
1 //
2 // Check casts.
3 //
4 using System;
6 class X {
8 public const short a = 128;
9 public const int b = 0xffff;
10 public const double c = 123.4;
12 public const long d = 5;
13 // public const int e = 2147483648;
15 public const byte f = 127;
17 public const char c1 = (char) 0xffff;
18 public const char c2 = (char) 123.4;
19 public const char c3 = (char) a;
20 public const char c4 = (char) b;
21 public const char c5 = (char) c;
23 public const short s2 = (short) c;
24 public IntPtr p = (IntPtr) null;
25 static int Main ()
27 return 0;