summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/CLR-x86-JIT/V1-M11-Beta1/b36471/b36471.cs
blob: 9c45f102153255dffc5cf3b0b475276b34bc81d4 (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
// 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 static object[] m_axStatic2 = null;
        public static void Static3()
        {
            bool flag1 = false, flag2 = false, flag3 = false;
            double local4 = 0.19;
            do
            {
                GC.Collect();
                while (flag1) ;
                while (flag2) ;
                object oo;
#pragma warning disable 1718,0162
                for (; (local4 == local4); oo = AA.m_axStatic2)
#pragma warning restore 1718,0162
                    throw new Exception();
            } while (flag3);
        }
        static int Main()
        {
            try
            {
                AA.Static3();
            }
            catch (Exception) { }
            return 100;
        }
    }
}