* invoke.cs: Add a test.
svn path=/trunk/mono/; revision=127639
+2009-02-21 Zoltan Varga <vargaz@gmail.com>
+
+ * invoke.cs: Add a test.
+
2009-02-19 Zoltan Varga <vargaz@gmail.com>
* pinvoke2.cs libtest.c: Add a test for #477396.
string s = (string)arr.GetType ().GetMethod ("Get").Invoke (arr, new object [] { 1, 1 });
if (s != "FOO")
return 3;
+
+ // Test the sharing of runtime invoke wrappers for string ctors
+ typeof (string).GetConstructor (new Type [] { typeof (char[]) }).Invoke (null, new object [] { new char [] { 'a', 'b', 'c' } });
+
+ typeof (Assembly).GetMethod ("GetType", new Type [] { typeof (string), }).Invoke (typeof (int).Assembly, new object [] { "A" });
return 0;
}