diff options
author | Marek Safar <marek.safar@gmail.com> | 2008-09-01 14:23:11 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2008-09-01 14:23:11 +0400 |
commit | bb6dd5cdcb36371116ca3da8aa299301138ea715 (patch) | |
tree | 83be76091a887178c79d671719515153115b176b /mcs/tests/gtest-408.cs | |
parent | 8fcb8dc53587b33e59311215de8001c7b5fde30e (diff) |
New tests.
svn path=/trunk/mcs/; revision=112008
Diffstat (limited to 'mcs/tests/gtest-408.cs')
-rwxr-xr-x | mcs/tests/gtest-408.cs | 23 |
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; } + } +} |