[runtime] Mark array types with more than 32 dimensions as invalid. Move the check...
[mono.git] / mcs / class / corlib / Test / System / TypeTest.cs
index 100f1c362742134360fd3562f632b1192f0d50c3..72300155135e4f7b93d04f914b52d093a997ac10 100644 (file)
@@ -3068,6 +3068,14 @@ namespace MonoTests.System
                        object o = Array.CreateInstance (typeof (global::System.TypedReference), 1);
                }
 
+               [Test]
+               public void MakeArrayTypeLargeRank ()
+               {
+                       Assert.Throws<TypeLoadException> (delegate () {
+                                       typeof (int).MakeArrayType (33);
+                               });
+               }
+
                [ComVisible (true)]
                public class ComFoo<T> {
                }