summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/JitBlue/GitHub_11733/GitHub_11733.cs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/JIT/Regression/JitBlue/GitHub_11733/GitHub_11733.cs')
-rw-r--r--tests/src/JIT/Regression/JitBlue/GitHub_11733/GitHub_11733.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/src/JIT/Regression/JitBlue/GitHub_11733/GitHub_11733.cs b/tests/src/JIT/Regression/JitBlue/GitHub_11733/GitHub_11733.cs
new file mode 100644
index 0000000000..2c49d298d8
--- /dev/null
+++ b/tests/src/JIT/Regression/JitBlue/GitHub_11733/GitHub_11733.cs
@@ -0,0 +1,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;
+ }
+}