Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

20 lines
281 B
C#

// Compiler options: -unsafe
using System;
unsafe class Program
{
unsafe public static int Main ()
{
float* to = stackalloc float[2];
to[0] = to[1] = float.MaxValue;
if (to[0] != float.MaxValue)
return 1;
if (to[1] != float.MaxValue)
return 2;
return 0;
}
}