Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / test-498.cs
1 using System.Reflection;
2 using System.Runtime.CompilerServices;
3
4 struct A
5 {
6         [MethodImplAttribute(MethodImplOptions.InternalCall)]
7         public extern A (float value);
8         
9         public extern int Foo {
10                 [MethodImplAttribute(MethodImplOptions.InternalCall)]
11                 get;
12         }
13 }
14
15 struct C
16 {
17         public static int Main ()
18         {
19                 MethodImplAttributes iflags = typeof (A).GetConstructors()[0].GetMethodImplementationFlags ();
20                 if ((iflags & MethodImplAttributes.InternalCall) == 0)
21                         return 1;
22
23                 iflags = typeof (A).GetProperties ()[0].GetGetMethod ().GetMethodImplementationFlags ();
24                 if ((iflags & MethodImplAttributes.InternalCall) == 0)
25                         return 2;
26                 
27                 return 0;
28         }
29 }