* roottypes.cs: Rename from tree.cs.
[mono.git] / mono / tests / enum.cs
1 namespace Test {
2
3 public enum YaddaYadda {
4         buba,
5         birba,
6         dadoom,
7 };
8
9 public enum byteenum : byte {
10         zero,
11         one,
12         two,
13         three
14 }
15
16 public enum longenum: long {
17         s0 = 0,
18         s1 = 1
19 }
20
21 public enum sbyteenum : sbyte {
22         d0,
23         d1
24 }
25
26 public class test {
27         public static int Main () {
28                 YaddaYadda val = YaddaYadda.dadoom;
29                 byteenum be = byteenum.one;
30                 if (val != YaddaYadda.dadoom)
31                         return 1;
32                 if (be != (byteenum)1)
33                         return 2;
34                 return 0;
35         }
36 }
37
38 }