Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / ipaddress.cs
index c6cf4e0f94a134fa938249b26e212c51cd783187..fbb7acb8654d2df0c9ae1d190a8741b46eddbf6e 100644 (file)
@@ -7,6 +7,17 @@ namespace T {
        public class T {
 
                public static int Main () {
+
+                       /*
+                       Console.WriteLine ("address is " + IPAddress.NetworkToHostOrder (0x0100007f).ToString("X"));
+                       */
+                       
+                       IPAddress testadd = IPAddress.Parse ("127.0.0.1");
+                       Console.WriteLine("address is " + testadd.Address.ToString ("X"));
+                       if (testadd.Address != 0x0100007f)
+                               return 1;
+
+                       
                        IPAddress hostadd = new IPAddress(0x0100007f);
                        Console.WriteLine("address is " + hostadd.ToString());
                        if (hostadd.ToString() != "127.0.0.1")