Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-437.cs
1 using System;
2 using System.Runtime.InteropServices;
3
4 class T2
5 {
6         public enum E2: sbyte
7         {
8                 A = Test.E.d,
9                 B = Test.E.a,
10                 C = Test.Constant
11         }
12         
13 }
14
15 class Test
16 {
17         public const UnmanagedType UnmanagedType_80 = (UnmanagedType) 80;       
18         public const sbyte Constant = (sbyte)T2.E2.A;
19         
20         public enum E: sbyte
21         {
22                 a = -3,
23                 b = d,
24                 c = T2.E2.B,
25                 d,
26                 e,
27                 f = -Constant,
28                 g = checked (3 * 4),
29                 h = unchecked ((sbyte)(250 + 10))
30         }
31                 
32         public static void Main ()
33         {
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);
39         }
40 }