[configure] Add new target.
[mono-project.git] / mcs / tests / gtest-408.cs
blob64e21f452548c4ed114d6afb7c976de824b50ab3
1 using System;
2 using System.Runtime.InteropServices;
4 public class Test
6 public static int Main ()
8 object [] o = typeof (IFoo).GetMethod ("get_Item").GetParameters () [0].GetCustomAttributes (false);
9 if (o.Length != 1)
10 return 1;
12 o = typeof (IFoo).GetMethod ("set_Item").GetParameters () [0].GetCustomAttributes (false);
13 if (o.Length != 1)
14 return 2;
16 return 0;
19 public interface IFoo
21 int this [[MarshalAs (UnmanagedType.Struct)]object vt0BasedIdxOrId] { get; set; }