blob: fbddca6ef54ad6c89dfa979b10f2619ceabb12bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
internal unsafe class bug1
{
public static void Func1(double* a01)
{
Console.WriteLine("The result should be 12");
Console.WriteLine(*a01 + (*a01 - (*a01 + -5.0)));
}
public static int Main()
{
double* a01 = stackalloc double[1];
*a01 = 7;
Func1(a01);
return 100;
}
}
|