Add new test
authorMiguel de Icaza <miguel@gnome.org>
Thu, 27 Dec 2001 16:01:08 +0000 (16:01 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Thu, 27 Dec 2001 16:01:08 +0000 (16:01 -0000)
svn path=/trunk/mcs/; revision=1725

mcs/tests/makefile
mcs/tests/test-68.cs [new file with mode: 0755]

index 8a48addcbd2aa4d0a7b516bd4d5cdc38ae41a772..82aae7b90560a8131ce63e716fdd632e7eb91c4e 100755 (executable)
@@ -11,7 +11,7 @@ TEST_SOURCES = \
        test-31 test-32 test-33 test-34 test-35 test-36 test-37         test-39 test-40 \
        test-41 test-42 test-43 test-44 test-45 test-46 test-47 test-48 test-49 test-50 \
        test-51 test-52 test-53 test-54 test-55 test-56 test-57         test-59         \
-       test-61 test-62 test-63 test-64 test-65 test-66 test-67
+       test-61 test-62 test-63 test-64 test-65 test-66 test-67 test-68
 
 
 TEST_NOPASS = \
diff --git a/mcs/tests/test-68.cs b/mcs/tests/test-68.cs
new file mode 100755 (executable)
index 0000000..8dd44f4
--- /dev/null
@@ -0,0 +1,22 @@
+//
+// Tests invocation of reference type functions with value type arguments
+//
+
+enum A {
+       Hello
+}
+
+class X {
+
+       static int Main ()
+       {
+               if ("Hello" != A.Hello.ToString ())
+                       return 1;
+
+               if (5.ToString () != "5")
+                       return 2;
+               
+               return 0;
+       }
+}
+