A test for bug #82299
authorMarek Safar <marek.safar@gmail.com>
Fri, 3 Aug 2007 11:20:00 +0000 (11:20 -0000)
committerMarek Safar <marek.safar@gmail.com>
Fri, 3 Aug 2007 11:20:00 +0000 (11:20 -0000)
svn path=/trunk/mcs/; revision=83396

mcs/tests/test-anon-70.cs [new file with mode: 0644]

diff --git a/mcs/tests/test-anon-70.cs b/mcs/tests/test-anon-70.cs
new file mode 100644 (file)
index 0000000..061757a
--- /dev/null
@@ -0,0 +1,18 @@
+public class C
+{
+       delegate void D ();
+       
+       static void Test (D d)
+       {
+       }
+       
+       public static void Main ()
+       {
+               int[] i_a = new int [] { 1,2,3 };
+               
+               Test (delegate () {
+                               foreach (int t in i_a) {
+                               }
+                       });
+       }
+}
\ No newline at end of file