Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2008-09-01 14:23:11 +0400
committerMarek Safar <marek.safar@gmail.com>2008-09-01 14:23:11 +0400
commitbb6dd5cdcb36371116ca3da8aa299301138ea715 (patch)
tree83be76091a887178c79d671719515153115b176b /mcs/tests/gtest-408.cs
parent8fcb8dc53587b33e59311215de8001c7b5fde30e (diff)
New tests.
svn path=/trunk/mcs/; revision=112008
Diffstat (limited to 'mcs/tests/gtest-408.cs')
-rwxr-xr-xmcs/tests/gtest-408.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/tests/gtest-408.cs b/mcs/tests/gtest-408.cs
new file mode 100755
index 00000000000..53fac0e7860
--- /dev/null
+++ b/mcs/tests/gtest-408.cs
@@ -0,0 +1,23 @@
+using System;
+using System.Runtime.InteropServices;
+
+public class Test
+{
+ static public int Main ()
+ {
+ object [] o = typeof (IFoo).GetMethod ("get_Item").GetParameters () [0].GetCustomAttributes (false);
+ if (o.Length != 1)
+ return 1;
+
+ o = typeof (IFoo).GetMethod ("set_Item").GetParameters () [0].GetCustomAttributes (false);
+ if (o.Length != 1)
+ return 2;
+
+ return 0;
+ }
+
+ public interface IFoo
+ {
+ int this [[MarshalAs (UnmanagedType.Struct)]object vt0BasedIdxOrId] { get; set; }
+ }
+}