Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

30 lines
649 B
C#

using System.Reflection;
using System.Runtime.CompilerServices;
struct A
{
[MethodImplAttribute(MethodImplOptions.InternalCall)]
public extern A (float value);
public extern int Foo {
[MethodImplAttribute(MethodImplOptions.InternalCall)]
get;
}
}
struct C
{
public 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;
}
}