[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-patches
Subject:    [Mono-patches] r154568 - trunk/mcs/tests
From:       "Marek Safar (msafar () novell ! com)" <mono-patches-list () lists ! ximian ! com>
Date:       2010-03-31 18:50:06
Message-ID: 20100331185006.72F4A26064 () mono-cvs ! ximian ! com
[Download RAW message or body]

Author: marek
Date: 2010-03-31 14:50:06 -0400 (Wed, 31 Mar 2010)
New Revision: 154568

Added:
   trunk/mcs/tests/gtest-iter-13.cs
   trunk/mcs/tests/test-748-lib.cs
   trunk/mcs/tests/test-748.cs
   trunk/mcs/tests/test-749-lib.cs
   trunk/mcs/tests/test-749.cs
Log:
Flush more pending tests.



Added: trunk/mcs/tests/gtest-iter-13.cs
===================================================================
--- trunk/mcs/tests/gtest-iter-13.cs	                        (rev 0)
+++ trunk/mcs/tests/gtest-iter-13.cs	2010-03-31 18:50:06 UTC (rev 154568)
@@ -0,0 +1,27 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+
+class C<T>
+{
+	public IEnumerator GetEnumerator ()
+	{
+		return new T[0].GetEnumerator ();
+	}
+
+	public IEnumerable<T> Filter (Func<T, bool> predicate)
+	{
+		foreach (T item in this)
+			if (predicate (item))
+				yield return item;
+	}
+}
+
+class M
+{
+	public static void Main ()
+	{
+		foreach (var v in new C<long>().Filter(null)) {
+		}
+	}
+}


Property changes on: trunk/mcs/tests/gtest-iter-13.cs
___________________________________________________________________
Added: svn:eol-style
   + native

Added: trunk/mcs/tests/test-748-lib.cs
===================================================================
--- trunk/mcs/tests/test-748-lib.cs	                        (rev 0)
+++ trunk/mcs/tests/test-748-lib.cs	2010-03-31 18:50:06 UTC (rev 154568)
@@ -0,0 +1,8 @@
+// Compiler options: -target:library
+
+namespace Test
+{
+	class Foo
+	{
+	}
+}
\ No newline at end of file


Property changes on: trunk/mcs/tests/test-748-lib.cs
___________________________________________________________________
Added: svn:eol-style
   + native

Added: trunk/mcs/tests/test-748.cs
===================================================================
--- trunk/mcs/tests/test-748.cs	                        (rev 0)
+++ trunk/mcs/tests/test-748.cs	2010-03-31 18:50:06 UTC (rev 154568)
@@ -0,0 +1,35 @@
+// Compiler options: -r:test-748-lib.dll
+
+using System;
+using Test;
+using RealTest;
+
+class M
+{
+	Foo Test ()
+	{
+		return new RealTest.Foo ();
+	}
+	
+	public static void Main ()
+	{
+	}
+}
+
+namespace Test.Local
+{
+	class M
+	{
+		Foo Test ()
+		{
+			return new RealTest.Foo ();
+		}
+	}
+}
+
+namespace RealTest
+{
+	class Foo
+	{
+	}
+}


Property changes on: trunk/mcs/tests/test-748.cs
___________________________________________________________________
Added: svn:eol-style
   + native

Added: trunk/mcs/tests/test-749-lib.cs
===================================================================
--- trunk/mcs/tests/test-749-lib.cs	                        (rev 0)
+++ trunk/mcs/tests/test-749-lib.cs	2010-03-31 18:50:06 UTC (rev 154568)
@@ -0,0 +1,16 @@
+// Compiler options: -target:library
+
+public class B : A
+{
+	public override int Prop {
+		get { return 3; }
+	}
+}
+
+public class A
+{
+	public virtual int Prop {
+		get { return 1; }
+		set {}
+	}
+}


Property changes on: trunk/mcs/tests/test-749-lib.cs
___________________________________________________________________
Added: svn:eol-style
   + native

Added: trunk/mcs/tests/test-749.cs
===================================================================
--- trunk/mcs/tests/test-749.cs	                        (rev 0)
+++ trunk/mcs/tests/test-749.cs	2010-03-31 18:50:06 UTC (rev 154568)
@@ -0,0 +1,12 @@
+// Compiler options: -r:test-749-lib.dll
+
+using System;
+
+class M
+{
+	public static void Main ()
+	{
+		B b = new B ();
+		b.Prop = 2;
+	}
+}


Property changes on: trunk/mcs/tests/test-749.cs
___________________________________________________________________
Added: svn:eol-style
   + native

_______________________________________________
Mono-patches maillist  -  Mono-patches@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-patches
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic