summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/CLR-x86-JIT/V1-M11-Beta1/b40221/b40221.cs
blob: 1b63162eb759eb08114e6a3290220da9a2f24850 (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
// 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;

    struct AA
    {
        static void Func()
        {
            int a = 0;
            while (a == 1)
                throw new Exception();
        }
        static int Main()
        {
            try
            {
                Func();
            }
            catch (Exception) { return -1; }
            return 100;
        }
    }
}