grammar updates
[mono.git] / mono / tests / enum.cs
index 9ab1080aaa71cac8101b4c787d04efe56da61e29..2f8f55cd53abcc3b48cbbdeee2f1fdfaf677f757 100755 (executable)
@@ -6,11 +6,31 @@ public enum YaddaYadda {
        dadoom,
 };
 
+public enum byteenum : byte {
+       zero,
+       one,
+       two,
+       three
+}
+
+public enum longenum: long {
+       s0 = 0,
+       s1 = 1
+}
+
+public enum sbyteenum : sbyte {
+       d0,
+       d1
+}
+
 public class test {
        public static int Main () {
                YaddaYadda val = YaddaYadda.dadoom;
+               byteenum be = byteenum.one;
                if (val != YaddaYadda.dadoom)
                        return 1;
+               if (be != (byteenum)1)
+                       return 2;
                return 0;
        }
 }