[bcl] Update tests that failed when .cs file contained CRLF
[mono.git] / mcs / tests / test-162.cs
index 64e1f4189c38d0e3f35314eea8801573c3664e13..7ccb720e40c84985ef0e7b430b01cc313977c3a7 100644 (file)
@@ -43,6 +43,12 @@ struct E
 {
        public D d;
        public bool e;
+
+       public E (int foo)
+       {
+               this.e = true;
+               this.d.foo = 9;
+       }
 }
 
 struct F
@@ -123,6 +129,22 @@ class X
                test_output (f);
        }
 
+       static void test9 ()
+       {
+               E e = new E (5);
+               Console.WriteLine (e.d.foo);
+       }
+
+       static void test10 ()
+       {
+               F f;
+               f.e = new E (10);
+               Console.WriteLine (f.e.d.foo);
+               Console.WriteLine (f.e.d);
+               f.f = 3.14F;
+               Console.WriteLine (f);
+       }
+
        public static int Main ()
        {
                // Compilation-only test.