diff options
author | Miguel de Icaza <miguel@gnome.org> | 2001-11-13 04:14:02 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2001-11-13 04:14:02 +0300 |
commit | 43439c5e47dc1339e409f35ae545b3cd3e6ddf70 (patch) | |
tree | ebba934dde249d033655352f5675801daa0061a8 /mcs/tests/test-7.cs | |
parent | 52b00bce38bba7b117797b12ffbf9eb71659a7b8 (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.cs | 18 |
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) |