// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace Test
{
    using System;

    public class AA
    {
        static bool m_bFlag = false;
        [Fact]
        public static void TestEntryPoint()
        {
            bool B = false;
            if (B)
            {
                try
                {
                    GC.Collect();
                }
                finally
                {
                    if (m_bFlag)
                    {
                        try
                        {
                            throw new Exception();
                        }
                        finally
                        {
                            while (m_bFlag) { }
                        }
                    }
                }
            }
        }
    }
}
