Improve test
authorMiguel de Icaza <miguel@gnome.org>
Tue, 10 Dec 2002 22:34:40 +0000 (22:34 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Tue, 10 Dec 2002 22:34:40 +0000 (22:34 -0000)
svn path=/trunk/mcs/; revision=9545

mcs/tests/test-68.cs

index df49dbc878654a21456f8cbb5290d2a8fff783cc..ffe5031c079722f3bc30c2e61897bd0c26724d9d 100755 (executable)
@@ -6,6 +6,14 @@ enum A {
        Hello
 }
 
+class Y {
+       public Y ()
+       {
+               value = 3;
+       }
+       public int value;
+}
+
 class X {
 
        static int Main ()
@@ -16,7 +24,11 @@ class X {
                Console.WriteLine ("value is: " + (5.ToString ()));
                if (5.ToString () != "5")
                        return 2;
-               
+
+               Y y = new Y ();
+               if (y.value.ToString () != "3")
+                       return 3;               
+               Console.WriteLine ("Test ok");
                return 0;
        }
 }