Imported Upstream version 5.16.0.160

Former-commit-id: 090371aae4deb2cffdeada14f23b6a47fbe7f087
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-09-15 08:20:41 +00:00
parent 9bb6ebb3d2
commit 0875d0d9cd
41 changed files with 58 additions and 33 deletions

View File

@ -120,6 +120,13 @@ namespace MonoTests.System.Runtime.InteropServices
Assert.IsTrue (size == 4 || size == 8);
}
[Test]
public unsafe void Sizeof_Void ()
{
int size = Marshal.SizeOf (typeof (void));
Assert.AreEqual (1, size);
}
[Test]
public void PtrToStringWithNull ()
{