Author: gert
Date: 2007-09-18 04:26:46 -0400 (Tue, 18 Sep 2007)
New Revision: 85953

Added:
   trunk/mcs/tests/test-586.cs
Modified:
   trunk/mcs/tests/ChangeLog
   trunk/mcs/tests/known-issues-gmcs
   trunk/mcs/tests/known-issues-mcs
Log:
* test-586.cs: test for bug #325841.
* known-issues-gmcs: added test-586.cs.
* known-issues-mcs: added test-586.cs.


Modified: trunk/mcs/tests/ChangeLog
===================================================================
--- trunk/mcs/tests/ChangeLog   2007-09-18 06:00:06 UTC (rev 85952)
+++ trunk/mcs/tests/ChangeLog   2007-09-18 08:26:46 UTC (rev 85953)
@@ -1,3 +1,9 @@
+2007-09-18  Gert Driesen  <[EMAIL PROTECTED]>
+
+       * test-586.cs: test for bug #325841.
+       * known-issues-gmcs: added test-586.cs.
+       * known-issues-mcs: added test-586.cs.
+
 2007-09-04  Gert Driesen  <[EMAIL PROTECTED]>
 
        * test-583.cs: test for bug #82676.

Modified: trunk/mcs/tests/known-issues-gmcs
===================================================================
--- trunk/mcs/tests/known-issues-gmcs   2007-09-18 06:00:06 UTC (rev 85952)
+++ trunk/mcs/tests/known-issues-gmcs   2007-09-18 08:26:46 UTC (rev 85953)
@@ -9,6 +9,7 @@
 test-xml-027.cs
 test-539.cs IGNORE     # In 2.0 profile, RuntimeCompatilityAttribute is added 
by default with WrapNonExceptionThrows set to true and conditional compilation 
symbols are not provided yet.
 test-562.cs
+test-586.cs
 
 gtest-230.cs
 

Modified: trunk/mcs/tests/known-issues-mcs
===================================================================
--- trunk/mcs/tests/known-issues-mcs    2007-09-18 06:00:06 UTC (rev 85952)
+++ trunk/mcs/tests/known-issues-mcs    2007-09-18 08:26:46 UTC (rev 85953)
@@ -9,4 +9,4 @@
 
 test-xml-027.cs
 test-562.cs
-
+test-586.cs

Added: trunk/mcs/tests/test-586.cs
===================================================================
--- trunk/mcs/tests/test-586.cs 2007-09-18 06:00:06 UTC (rev 85952)
+++ trunk/mcs/tests/test-586.cs 2007-09-18 08:26:46 UTC (rev 85953)
@@ -0,0 +1,32 @@
+class Program
+{
+       static int Main ()
+       {
+               MyColor [] c = new MyColor [1];
+               c [0] += new MyColor (1.3F);
+               c [0] += new MyColor (1.5F);
+               if (c [0].Value != 2.8F)
+                       return 1;
+               return 0;
+       }
+
+       public struct MyColor
+       {
+               private float _value;
+
+               public MyColor (float value)
+               {
+                       _value = value;
+               }
+
+               public float Value
+               {
+                       get { return _value; }
+               }
+
+               public static MyColor operator + (MyColor a, MyColor b)
+               {
+                       return new MyColor (a._value + b._value);
+               }
+       }
+}


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

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to