[runtime] Mark array types with more than 32 dimensions as invalid. Move the check...
[mono.git] / mcs / class / corlib / Test / System / ArrayTest.cs
index 351d312c92d63c5d217d3f9df04524402671680b..f8d33b932faaff3ce22b010e82b0a73673e2de14 100644 (file)
@@ -779,6 +779,14 @@ public class ArrayTest
                Array.CreateInstance (typeof (Int32), (long[])null);
        }
 
+       [Test]
+       public void CreateInstanceVoid ()
+       {
+               Assert.Throws<NotSupportedException> (delegate () {
+                               Array.CreateInstance (typeof (void), 1);
+                       });
+       }
+
        [Test]
        public void TestGetEnumerator() {
                String[] s1 = {"this", "is", "a", "test"};