public static void CtorPointerNull() { unsafe { ReadOnlySpan<int> span = new ReadOnlySpan<int>((void*)null, 0); span.Validate<int>(); Assert.True(Unsafe.AreSame<int>(ref Unsafe.AsRef<int>((void*)null), ref span.DangerousGetPinnableReference())); } }