summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b72996/b72996.cs
blob: 867fdb1088a55003156b5b4f1b2301e439b34b2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//

using System;
class testout1
{
    public struct VT
    {
        public long a2;
        public double a5;
    }
    public class CL
    {
        public double a1 = 4;
    }
    static int[, ,] arr3d = new int[5, 11, 4];
    public static VT vtstatic = new VT();
    public static CL clstatic = new CL();
    public static long Func()
    {
        vtstatic.a2 = -4L;
        vtstatic.a5 = -8;
        arr3d[4, 0, 3] = 5;
        long retval = Convert.ToInt64((long)(Convert.ToInt32((Convert.ToInt32(clstatic.a1 - ((double)(vtstatic.a2 * vtstatic.a5))))) - (long)((long)(Convert.ToInt32(arr3d[4, 0, 3]) - (long)((long)(Convert.ToInt32(arr3d[4, 0, 3]) - (long)(((long)(vtstatic.a2 / 1L)))))))));
        return retval;
    }
    public static int Main()
    {
        Func();
        return 100;
    }
}