summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b51469/b51469.cs
blob: e4d0bd5cd16b3118d95a6419da5840066d137fd3 (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
// 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
    {
        void Method1() { }

        static void Main1()
        {
            (new AA[137])[101].Method1();
            throw new DivideByZeroException();
        }
        static int Main()
        {
            try
            {
                Main1();
                return 1;
            }
            catch (DivideByZeroException)
            {
                return 100;
            }
        }
    }
}