2010-05-13 Rodrigo Kumpera <rkumpera@novell.com>
[mono-project.git] / mcs / tests / test-498.cs
blob8eb24fb4ad285d0d4c583a0e79e79bda55936512
1 using System.Reflection;
2 using System.Runtime.CompilerServices;
4 struct A
6 [MethodImplAttribute(MethodImplOptions.InternalCall)]
7 public extern A (float value);
9 public extern int Foo {
10 [MethodImplAttribute(MethodImplOptions.InternalCall)]
11 get;
15 struct C
17 static int Main ()
19 MethodImplAttributes iflags = typeof (A).GetConstructors()[0].GetMethodImplementationFlags ();
20 if ((iflags & MethodImplAttributes.InternalCall) == 0)
21 return 1;
23 iflags = typeof (A).GetProperties ()[0].GetGetMethod ().GetMethodImplementationFlags ();
24 if ((iflags & MethodImplAttributes.InternalCall) == 0)
25 return 2;
27 return 0;