[Microsoft.CSharp] Replaced with CoreFX implementation
[mono.git] / mcs / tests / gtest-264.cs
1 public class BaseList<SubType>
2 {
3         // without this field instantiation everything works fine.
4         object obj = new object ();
5 }
6
7 public class XXX : BaseList<object>
8 {
9 }
10
11 public class Crash
12 {
13         public static void Main()
14         {
15                 // After creating an array, instantiation got broken.
16                 XXX [] arr = new XXX [0];
17                 // this array creation is OK
18                 // BaseList<object> [] arr = new BaseList<object> [0];
19
20                 new BaseList<object> (); // even this causes SISSEGV
21         }
22 }