public static unsafe int test_0_initblk() { byte *ptr = stackalloc byte [20]; for (int i = 0; i < 20; ++i) { ptr [i] = (byte)i; } Intrinsics.UnalignedInit(ptr, 30, 2); if (ptr [0] != 30 || ptr [1] != 30) { return(1); } Intrinsics.UnalignedInit(ptr + 1, 31, 2); if (ptr[0] != 30 || ptr [1] != 31 || ptr [2] != 31) { return(2); } return(0); }