Browse files

2008-12-26 Rodrigo Kumpera <rkumpera@novell.com>

	* bug-461261.cs: New regression test.

	* Makefile.am: Test added.

svn path=/trunk/mono/; revision=122134
  • Loading branch information...
1 parent 0667beb commit 26fe7e983e4d5a866b13d12808253ee9eed56dca @kumpera kumpera committed Dec 26, 2008
Showing with 27 additions and 1 deletion.
  1. +6 −0 mono/tests/ChangeLog
  2. +2 −1 mono/tests/Makefile.am
  3. +19 −0 mono/tests/bug-461261.cs
View
6 mono/tests/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-26 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * bug-461261.cs: New regression test.
+
+ * Makefile.am: Test added.
+
2008-12-24 Mark Probst <mark.probst@gmail.com>
* generic-sealed-virtual.2.cs: Test case for final generic
View
3 mono/tests/Makefile.am
@@ -330,7 +330,8 @@ BASE_TEST_CS_SRC= \
vararg2.cs \
bug-389886-sre-generic-interface-instances.cs \
bug-461867.cs \
- bug-461941.cs
+ bug-461941.cs \
+ bug-461261.cs
if AMD64
TEST_CS_SRC = $(BASE_TEST_CS_SRC) async-exc-compilation.cs
View
19 mono/tests/bug-461261.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+
+public interface ICode
+{
+ string Code { get; }
+}
+
+static class Program
+{
+ public static void Main ()
+ {
+ IEnumerable<object> array = new ICode[10];
+ IEnumerator<object> x = array.GetEnumerator ();
+
+ x.MoveNext ();
+ object o = x.Current;
+ }
+}

0 comments on commit 26fe7e9

Please sign in to comment.