Author: marek
Date: 2007-10-03 13:25:37 -0400 (Wed, 03 Oct 2007)
New Revision: 86822
Added:
trunk/mcs/tests/test-590.cs
Log:
A new test for bug #328774
Added: trunk/mcs/tests/test-590.cs
===================================================================
--- trunk/mcs/tests/test-590.cs 2007-10-03 17:24:49 UTC (rev 86821)
+++ trunk/mcs/tests/test-590.cs 2007-10-03 17:25:37 UTC (rev 86822)
@@ -0,0 +1,54 @@
+using System;
+
+class X
+{
+ static int Main ()
+ {
+ X x = new X ();
+ return x.Do ("a", "b", "c");
+ }
+
+ string str = "start";
+
+ string Foo ()
+ {
+ return "s";
+ }
+
+ string Prop
+ {
+ get { return str; }
+ set { str = value; }
+ }
+
+ string this [int i]
+ {
+ get { return str; }
+ set { str = value; }
+ }
+
+ int Do (string a, string b, string c)
+ {
+ str += Foo ();
+ if (str != "starts")
+ return 1;
+
+ str += a + "," + b + "," + c;
+ if (str != "startsa,b,c")
+ return 2;
+
+ Prop += a;
+ if (str != "startsa,b,ca")
+ return 3;
+
+ Prop += a + "," + b + "," + c;
+ if (str != "startsa,b,caa,b,c")
+ return 4;
+
+ this [0] += a + "," + b + "," + c;
+ if (str != "startsa,b,caa,b,ca,b,c")
+ return 5;
+
+ return 0;
+ }
+}
\ No newline at end of file
Property changes on: trunk/mcs/tests/test-590.cs
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches