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