Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@novell.com>2006-03-24 22:17:03 +0300
committerMartin Baulig <martin@novell.com>2006-03-24 22:17:03 +0300
commitf6b2726e966d26ef1f6ce0ad364aa3dd83aa11c3 (patch)
tree15af28d5628ed8b0f67d57f77609909b54a47aa6 /mcs/tests/gtest-264.cs
parent2ced08a1f887627c5f53c4160117ed299bd54563 (diff)
New test.
svn path=/trunk/mcs/; revision=58479
Diffstat (limited to 'mcs/tests/gtest-264.cs')
-rwxr-xr-xmcs/tests/gtest-264.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/mcs/tests/gtest-264.cs b/mcs/tests/gtest-264.cs
new file mode 100755
index 00000000000..9f16bf9b600
--- /dev/null
+++ b/mcs/tests/gtest-264.cs
@@ -0,0 +1,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
+ }
+}