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

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

index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..b632c6bc2dbe7beab4145aae40e41520dcaafc50
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,25 @@@
++using System;
++using System.Collections.Generic;
++
++class X
++{
++      public IEnumerable<T> Test<T> (T a, T b)
++      {
++              yield return b;
++              b = a;
++              yield return a;
++        }
++
++      static int Main ()
++      {
++              X x = new X ();
++              long sum = 0;
++              foreach (long i in x.Test (3, 5)) {
++                      Console.WriteLine (i);
++                      sum += i;
++              }
++
++              Console.WriteLine (sum);
++              return sum == 8 ? 0 : 1;
++      }
++}