X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ftests%2Ftest-77.cs;h=7da6a379d434d5dea00cece92cc1bd7e8ccf2396;hb=edbc5c2334e10836479d1cc528c68d4ad5b47440;hp=8f3119b2a88379c433b525ab876e5e93db26ed42;hpb=a097b5471761180c4aae2dab224ed9caeeae3e86;p=mono.git diff --git a/mcs/tests/test-77.cs b/mcs/tests/test-77.cs index 8f3119b2a88..7da6a379d43 100644 --- a/mcs/tests/test-77.cs +++ b/mcs/tests/test-77.cs @@ -8,7 +8,7 @@ class XX { A = 1 } - static int Main () + public static int Main () { int one = 1; int two = 2; @@ -34,6 +34,38 @@ class XX { if ((1 + " " + "hello") != "1 hello") return 7; + const string s1 = null + (string)null; + const string s2 = (string)null + null; + + string s; + s = (string)null + null; + if (s.Length != 0) + return 8; + + s = null + (string)null; + if (s.Length != 0) + return 9; + + s = (object)null + null; + if (s.Length != 0) + return 10; + + s = null + (object)null; + if (s.Length != 0) + return 11; + + s = (object)1 + null; + if (s != "1") + return 12; + + s = (string)null + (object)null; + if (s.Length != 0) + return 13; + + s = (object)null + (string)null; + if (s.Length != 0) + return 14; + System.Console.WriteLine ("test ok"); return 0; }