Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / test-68.cs
old mode 100755 (executable)
new mode 100644 (file)
index 8dd44f4..d61be1d
@@ -1,21 +1,37 @@
 //
 // Tests invocation of reference type functions with value type arguments
 //
-
+using System;
 enum A {
        Hello
 }
 
+class Y {
+       public Y ()
+       {
+               value = 3;
+       }
+       public int value;
+}
+
 class X {
 
-       static int Main ()
+       public static int Main ()
        {
                if ("Hello" != A.Hello.ToString ())
                        return 1;
 
+               Console.WriteLine ("value is: " + (5.ToString ()));
                if (5.ToString () != "5")
                        return 2;
-               
+
+               Y y = new Y ();
+               if (y.value.ToString () != "3"){
+                       string x = y.value.ToString ();
+                       Console.WriteLine ("Got: {0} expected 3", x);
+                       return 3;               
+               }
+               Console.WriteLine ("Test ok");
                return 0;
        }
 }