summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b31917/b31917.cs
blob: 0a81d81729b431903c92e41ca79451317878f47e (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
35
36
37
38
39
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//

namespace Test
{
    using System;

    class AA
    {
        public int m_nField2 = 51;
        public static int[] Method1(int param1)
        {
            return null;
        }
        public static double[] Static3(object[] param1, int param2)
        {
            uint[] local5 = new uint[7];
            uint[] local6 = new uint[7];
            return BB.m_adStatic1;
        }
        static int Main()
        {
            try
            {
                Static3(null, Method1((int)Static3(null, new AA().m_nField2 + 2)[0])[0]);
            }
            catch (Exception)
            {
            }
            return 100;
        }
    }

    class BB
    {
        public static double[] m_adStatic1 = (new double[7]);
    }
}