Skip to content

Commit

Permalink
Test case for bug #325495.
Browse files Browse the repository at this point in the history
svn path=/trunk/mono/; revision=86919
  • Loading branch information
illupus committed Oct 4, 2007
1 parent 59e5fa8 commit 5dbd8d9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions mono/tests/Makefile.am
Expand Up @@ -299,6 +299,7 @@ TEST_CS2_SRC = \
bug-80392.2.cs \
dynamic-method-access.2.cs \
bug-82194.2.cs \
anonarray.2.cs \
generic_type_definition.2.cs

TEST_IL2_SRC = find-method.2.il \
Expand Down
22 changes: 22 additions & 0 deletions mono/tests/anonarray.2.cs
@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;

class Program {
public static void Main()
{
// this form of initialisation causes a crash when I try
// to iterate through the items.
IEnumerable<IEnumerable<string>> table
= new string[][] {
new string[] { "1a", "1b" },
new string[] { "2a", "2b" }
};

foreach (IEnumerable<string> row in table) {
foreach (string cell in row) {
Console.Write("{0} ", cell);
}
Console.WriteLine();
}
}
}

0 comments on commit 5dbd8d9

Please sign in to comment.