2010-05-19 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-437.cs
blob88ed74501ded8ec9980f0266f5ec7a213e816f62
1 using System;
2 using System.Runtime.InteropServices;
4 class T2
6 public enum E2: sbyte
8 A = Test.E.d,
9 B = Test.E.a,
10 C = Test.Constant
15 class Test
17 public const UnmanagedType UnmanagedType_80 = (UnmanagedType) 80;
18 public const sbyte Constant = (sbyte)T2.E2.A;
20 public enum E: sbyte
22 a = -3,
23 b = d,
24 c = T2.E2.B,
27 f = -Constant,
28 g = checked (3 * 4),
29 h = unchecked ((sbyte)(250 + 10))
32 public static void Main ()
34 Console.WriteLine (E.d.ToString ());
35 Console.WriteLine (Constant.ToString ());
36 object o = E.a;
37 Console.WriteLine (E.a);
38 Console.WriteLine (System.Reflection.BindingFlags.NonPublic);