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

test-808.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3ac207dde5c0d805326967a44e98205d9a93df98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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;
	}
}