Merge pull request #487 from mayerwin/patch-1
[mono.git] / mcs / tests / test-808.cs
1 // Compiler options: -unsafe
2
3 using System;
4
5 unsafe class Program
6 {
7         unsafe public static int Main ()
8         {
9                 float* to = stackalloc float[2];
10                 to[0] = to[1] = float.MaxValue;
11                 if (to[0] != float.MaxValue)
12                         return 1;
13
14                 if (to[1] != float.MaxValue)
15                         return 2;
16
17                 return 0;
18         }
19 }