Add new test 308
authorMiguel de Icaza <miguel@gnome.org>
Sat, 9 Oct 2004 18:20:44 +0000 (18:20 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Sat, 9 Oct 2004 18:20:44 +0000 (18:20 -0000)
svn path=/trunk/mcs/; revision=34837

mcs/tests/Makefile
mcs/tests/test-308.cs [new file with mode: 0644]

index 25848e4de5d85d05d124f25bd06df329c3ebda9f..9dcf3952d7165207c5d3a28dbf436b60b58a22cf 100644 (file)
@@ -26,7 +26,7 @@ USE_MCS_FLAGS :=
 #
 NEW_TEST_SOURCES_common = \
        test-297 test-287 test-294 test-299 test-300 \
-       test-301 test-302 test-303 test-304 test-305 test-306 test-307
+       test-301 test-302 test-303 test-304 test-305 test-306 test-307 test-308
 
 #
 # Please do _not_ add any tests here - all new tests should go into NEW_TEST_SOURCES_common
diff --git a/mcs/tests/test-308.cs b/mcs/tests/test-308.cs
new file mode 100644 (file)
index 0000000..ca5d160
--- /dev/null
@@ -0,0 +1,18 @@
+using System;
+using System.Security;
+using System.Security.Permissions;
+
+public class Program {
+
+        static public void Main (string [] args)
+        {
+                SecurityAction a = SecurityAction.Demand;
+                switch (a) {
+                        case (SecurityAction)13:
+                        case SecurityAction.Demand:
+                                Console.WriteLine ("ok");
+                        break;
+                }
+        }
+}