[loader] Init MonoClass:sizes.element_size lazily (Fixes #43563) (#5559)
[mono.git] / mono / tests / debug-casts.cs
index fafa7ef438f77ebb0e164deb832ad620b4b7503c..129e6e210e309f025c5495bc29b0f64c6749e7d3 100644 (file)
@@ -1,5 +1,6 @@
 using System;
 using System.Collections.Generic;
+using System.Runtime.CompilerServices;
 
 public class Tests
 {
@@ -30,4 +31,15 @@ public class Tests
                }
                return 0;
        }
+
+       [MethodImplAttribute (MethodImplOptions.NoInlining)]
+       public static object return_null () {
+               return null;
+       }
+
+       public static int test_0_complex_1_null () {
+               object o = return_null ();
+               IEnumerable<object> ie = (IEnumerable<object>)o;
+               return 0;
+       }
 }