Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2001-11-13 04:14:02 +0300
committerMiguel de Icaza <miguel@gnome.org>2001-11-13 04:14:02 +0300
commit43439c5e47dc1339e409f35ae545b3cd3e6ddf70 (patch)
treeebba934dde249d033655352f5675801daa0061a8 /mcs/tests/test-7.cs
parent52b00bce38bba7b117797b12ffbf9eb71659a7b8 (diff)
Make the test not pass, Ravi, check this please
svn path=/trunk/mcs/; revision=1337
Diffstat (limited to 'mcs/tests/test-7.cs')
-rw-r--r--mcs/tests/test-7.cs18
1 files changed, 12 insertions, 6 deletions
diff --git a/mcs/tests/test-7.cs b/mcs/tests/test-7.cs
index 9bf10983f6d..dfb7c499e76 100644
--- a/mcs/tests/test-7.cs
+++ b/mcs/tests/test-7.cs
@@ -59,23 +59,29 @@ namespace Mine {
return 0;
}
-
+
+ public Blah (int v)
+ {
+ i = v;
+ }
+
public static Blah operator + (Blah i, Blah j)
{
- Console.WriteLine ("Overloaded binary + operator");
- return null;
+ Blah b = new Blah (i.i + j.i);
+ Console.WriteLine ("Overload binary + operator");
+ return b;
}
public static Blah operator + (Blah i)
{
- Console.WriteLine ("Overloaded unary + operator");
- return null;
+ Console.WriteLine ("Overload unary + operator");
+ return new Blah (i.i);
}
public static Blah operator - (Blah i)
{
Console.WriteLine ("Overloaded unary - operator");
- return null;
+ return new Blah (- i.i);
}
public static Blah operator - (Blah i, Blah j)