Imported Upstream version 4.0.0~alpha1

Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
Jo Shields
2015-04-07 09:35:12 +01:00
parent 283343f570
commit 3c1f479b9d
22469 changed files with 2931443 additions and 869343 deletions

View File

@ -232,7 +232,6 @@ namespace MonoTests.System.Reflection
}
}
#if NET_2_0
[Test] // GetFieldFromHandle (RuntimeFieldHandle, RuntimeTypeHandle)
public void GetFieldFromHandle2_DeclaringType_Zero ()
{
@ -315,7 +314,6 @@ namespace MonoTests.System.Reflection
FieldInfo fi2 = FieldInfo.GetFieldFromHandle (fh, th);
}
#endif
[Test]
public void PseudoCustomAttributes ()
@ -519,6 +517,10 @@ namespace MonoTests.System.Reflection
[Test]
public unsafe void GetSetValuePointers ()
{
Pointer p0 = (Pointer)typeof (FieldInfoTest).GetField ("ip").GetValue (null);
int *p0i = (int*)Pointer.Unbox (p0);
Assert.AreEqual (IntPtr.Zero, new IntPtr (p0i));
int i = 5;
void *p = &i;
typeof (FieldInfoTest).GetField ("ip").SetValue (null, (IntPtr)p);