summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/JitBlue/GitHub_11733/GitHub_11733.cs
blob: 2c49d298d8b823a651a6b6bbe04195d86275f741 (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
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using System.Runtime.CompilerServices;

class C
{
    [MethodImpl(MethodImplOptions.NoInlining)]
    static float L(float a)
    {
        return M(float.NegativeInfinity, a);
    }

    [MethodImpl(MethodImplOptions.AggressiveInlining)]
    static float M(float a, float b)
    {
        return (float)Math.Pow(a, (float)Math.Pow(b, a));
    }

    static int Main()
    {
        return L(0) == M(float.NegativeInfinity, 0) ? 100 : 0;
    }
}