diff options
Diffstat (limited to 'tests/src/JIT/Methodical/fp/exgen/3w1d-02.cs')
-rw-r--r-- | tests/src/JIT/Methodical/fp/exgen/3w1d-02.cs | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/src/JIT/Methodical/fp/exgen/3w1d-02.cs b/tests/src/JIT/Methodical/fp/exgen/3w1d-02.cs new file mode 100644 index 0000000000..6b1fd960c4 --- /dev/null +++ b/tests/src/JIT/Methodical/fp/exgen/3w1d-02.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; +internal unsafe class testout1 +{ + public struct VT_0 + { + public ulong[,,] arr3d_0; + public VT_0(int i) + { + arr3d_0 = new ulong[5, 4, 4]; + } + } + private static double s_a1_0 = -0.035714285714285712; + + public static VT_0 vtstatic_0 = new VT_0(1); + + public static double Func_0() + { + vtstatic_0.arr3d_0[4, 0, 3] = 1UL; + if ((s_a1_0) == ((vtstatic_0.arr3d_0[4, 0, 3] / s_a1_0))) + { + if ((128.0) <= ((128.0 + (vtstatic_0.arr3d_0[4, 0, 3] / s_a1_0)))) + Console.WriteLine("Func_0: <= true"); + else + { + return Convert.ToDouble((128.0 + (vtstatic_0.arr3d_0[4, 0, 3] / s_a1_0))); + } + } + double retval_0 = Convert.ToDouble((128.0 + (vtstatic_0.arr3d_0[4, 0, 3] / s_a1_0))); + return retval_0; + } + + public static int Main() + { + vtstatic_0.arr3d_0[4, 0, 3] = 1UL; + + int retval; + retval = Convert.ToInt32(Func_0()); + if ((retval >= 99) && (retval < 100)) + retval = 100; + if ((retval > 100) && (retval <= 101)) + retval = 100; + Console.WriteLine(retval); + return retval; + } +} |