diff options
author | Marek Safar <marek.safar@gmail.com> | 2010-05-28 17:07:41 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2010-05-28 17:07:41 +0400 |
commit | fc3bf9950cada1dbc47f1f6534712322475b7ebb (patch) | |
tree | 06cb5e8d37e27ce1e83f1ad470979f632847a1cd /mcs/tests/gtest-linq-21.cs | |
parent | ca2040a0b72af03f06bb3f8af252cd6d7717160c (diff) |
New tests.
svn path=/trunk/mcs/; revision=158109
Diffstat (limited to 'mcs/tests/gtest-linq-21.cs')
-rw-r--r-- | mcs/tests/gtest-linq-21.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mcs/tests/gtest-linq-21.cs b/mcs/tests/gtest-linq-21.cs new file mode 100644 index 00000000000..ff6ae67b30c --- /dev/null +++ b/mcs/tests/gtest-linq-21.cs @@ -0,0 +1,20 @@ +using System; +using System.Linq; + +static class Program +{ + static int Main() + { + int i = 0; + var input = new int[] { 1 }; + var input2 = new int[] { 5 }; + var r = + from _ in input + from y in input2 + select (Action)(() => Console.WriteLine("{0} {1} {2}", i, _, y)); + + r.ToList () [0] (); + return 0; + } +} + |