2007-10-17 Jonathan Pobst <monkey@jpobst.com>
[mono.git] / mcs / tests / test-498.cs
1 using System.Reflection;\r
2 using System.Runtime.CompilerServices;\r
3 \r
4 struct C\r
5 {\r
6         [MethodImplAttribute(MethodImplOptions.InternalCall)]
7         public extern C(float value);
8 \r
9         static int Main ()\r
10         {\r
11                 MethodImplAttributes iflags = typeof (C).GetConstructors()[0].GetMethodImplementationFlags ();\r
12                 if ((iflags & MethodImplAttributes.InternalCall) == 0)\r
13                         return 1;\r
14 \r
15                 return 0;\r
16         }\r
17 }