Merged into single file, added assertions
[mono.git] / mcs / tests / test-721.cs
1 using System;
2 using System.Reflection;
3 using System.Runtime.InteropServices;
4
5 class Program
6 {
7         static int Main ()
8         {
9                 Type t = typeof (Control);
10                 MethodInfo m = t.GetMethod ("set_Foo");
11
12                 if (m.GetParameters ()[0].Name != "value")
13                         return 1;
14
15                 return 0;
16         }
17 }
18
19 class Control
20 {
21         public virtual int Foo
22         {
23                 [param: MarshalAs (UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof (int))]
24                 set
25                 {
26                 }
27         }
28 }