summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/CLR-x86-JIT/V1-M09.5-PDC/b27824/b27824.cs
blob: 51c6cd80f598f42ec7eea5e67c43ebd7d153753f (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
40
41
42
43
44
45
46
47
48
// 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
    {
        static AA[] m_axForward3;
        static void GoToEnd() { throw new Exception(); }

        public static int Main()
        {
            bool param1 = false;
            bool[] local2 = new bool[7];
            float local3 = -40.0f;
            try
            {
                while (500.20f <= local3 + local3)
                {
                    GC.Collect();
                    AA.m_axForward3 = new AA[7];
                }
                do
                {
                    AA aa;
                    for (aa = new AA(); true; local2 = local2)
                    {
                        GC.Collect();
                        GoToEnd();
                    }
                } while (local2[2]);

                do
                {

                } while (true);
                GC.Collect();
            }
            catch (Exception)
            {
            }
            return 100;
        }
    }
}