- public extern C(float value);
-\r
- static int Main ()\r
- {\r
- MethodImplAttributes iflags = typeof (C).GetConstructors()[0].GetMethodImplementationFlags ();\r
- if ((iflags & MethodImplAttributes.InternalCall) == 0)\r
- return 1;\r
-\r
- return 0;\r
- }\r
+ public extern A (float value);
+
+ public extern int Foo {
+ [MethodImplAttribute(MethodImplOptions.InternalCall)]
+ get;
+ }
+}
+
+struct C
+{
+ static int Main ()
+ {
+ MethodImplAttributes iflags = typeof (A).GetConstructors()[0].GetMethodImplementationFlags ();
+ if ((iflags & MethodImplAttributes.InternalCall) == 0)
+ return 1;
+
+ iflags = typeof (A).GetProperties ()[0].GetGetMethod ().GetMethodImplementationFlags ();
+ if ((iflags & MethodImplAttributes.InternalCall) == 0)
+ return 2;
+
+ return 0;
+ }