projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
fc4b07f
f394a1e
)
New test.
author
Martin Baulig
<martin@novell.com>
Wed, 4 Oct 2006 20:51:06 +0000
(20:51 -0000)
committer
Martin 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
patch
|
|
|
blob
diff --cc
mcs/tests/gtest-anon-14.cs
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..b632c6bc2dbe7beab4145aae40e41520dcaafc50
new file mode 100644
(file)
--- /dev/null
--- /dev/null
+++ b/
mcs/tests/gtest-anon-14.cs
@@@ -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;
++ }
++}