New test.
authorMartin Baulig <martin@novell.com>
Wed, 4 Oct 2006 20:51:14 +0000 (20:51 -0000)
committerMartin Baulig <martin@novell.com>
Wed, 4 Oct 2006 20:51:14 +0000 (20:51 -0000)
svn path=/trunk/mcs/; revision=66266

1  2 
mcs/tests/gtest-anon-25.cs

index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..5712fb9d8fb7b624aeee53a02c45b4717e1b62e3
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,25 @@@
++using System;
++using System.Collections.Generic;
++
++delegate int Foo ();
++
++class X
++{
++      static void Main ()
++      {
++              Test ("Hello World", 8);
++      }
++
++      public static void Test<R> (R r, int a)
++      {
++              for (int b = a; b > 0; b--) {
++                      R s = r;
++                      Foo foo = delegate {
++                              Console.WriteLine (b);
++                              Console.WriteLine (s);
++                              return 3;
++                      };
++                      a -= foo ();
++              }
++      }
++}