summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-264.cs
blob: 9f16bf9b600127a9d0967097a1483adb8648cda3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
public class BaseList<SubType>
{
        // without this field instantiation everything works fine.
        object obj = new object ();
}

public class XXX : BaseList<object>
{
}

public class Crash
{
        public static void Main()
        {
                // After creating an array, instantiation got broken.
                XXX [] arr = new XXX [0];
                // this array creation is OK
                // BaseList<object> [] arr = new BaseList<object> [0];

                new BaseList<object> (); // even this causes SISSEGV
        }
}