Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.Memory/tests/Memory/Retain.cs')
-rw-r--r--src/System.Memory/tests/Memory/Retain.cs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/System.Memory/tests/Memory/Retain.cs b/src/System.Memory/tests/Memory/Retain.cs
index 4286685a0d..3a33817dff 100644
--- a/src/System.Memory/tests/Memory/Retain.cs
+++ b/src/System.Memory/tests/Memory/Retain.cs
@@ -116,14 +116,6 @@ namespace System.MemoryTests
Memory<int> memory = new int[0];
MemoryHandle handle = memory.Retain(pin: true);
Assert.True(handle.HasPointer);
- unsafe
- {
- int* pointer = (int*)handle.Pointer;
-
- GC.Collect();
-
- Assert.True(pointer != null);
- }
handle.Dispose();
}