Author: martin
Date: 2006-10-04 16:51:26 -0400 (Wed, 04 Oct 2006)
New Revision: 66269
Added:
trunk/mcs/tests/gtest-anon-29.cs
Removed:
branches/martin/anonymous-methods/work/test-martin-29.cs
Log:
New test.
Deleted: branches/martin/anonymous-methods/work/test-martin-29.cs
===================================================================
--- branches/martin/anonymous-methods/work/test-martin-29.cs 2006-10-04
20:51:21 UTC (rev 66268)
+++ branches/martin/anonymous-methods/work/test-martin-29.cs 2006-10-04
20:51:26 UTC (rev 66269)
@@ -1,27 +0,0 @@
-// Compiler options: /unsafe
-using System;
-using System.Collections.Generic;
-
-unsafe class Test
-{
- public static void Main ()
- {
- foreach (int item in GetItems ()) {
- Console.WriteLine (item);
- }
- }
-
- public static unsafe int GetItem ()
- {
- byte[] value = new byte[] { 0xDE, 0xAD, 0xBE, 0xEF };
-
- fixed (byte* valueptr = value) {
- return *(int*) valueptr;
- }
- }
-
- public static IEnumerable<int> GetItems ()
- {
- yield return GetItem ();
- }
-}
Copied: trunk/mcs/tests/gtest-anon-29.cs (from rev 66268,
branches/martin/anonymous-methods/work/test-martin-29.cs)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches