diff options
Diffstat (limited to 'tests/src/JIT/Regression/CLR-x86-JIT/V1-M11-Beta1/b31878/b31878.cs')
-rw-r--r-- | tests/src/JIT/Regression/CLR-x86-JIT/V1-M11-Beta1/b31878/b31878.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1-M11-Beta1/b31878/b31878.cs b/tests/src/JIT/Regression/CLR-x86-JIT/V1-M11-Beta1/b31878/b31878.cs new file mode 100644 index 0000000000..ac0d32acb7 --- /dev/null +++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1-M11-Beta1/b31878/b31878.cs @@ -0,0 +1,38 @@ +// 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; + + class AA + { + float m_fField1 = 426.19f; + static float Method1(ref object[] param1, int param2, ref bool[] param3, double[] param4) + { + while (param2 > (int)param4[2]) + { + do + { + } while (210.11f == (new AA().m_fField1 - (float)param4[2]) + + ((float)param4[2] + (float)param4[2])); + } + return 0.0f; + } + static int Main() + { + try + { + bool[] ab = null; + object[] ao = null; + Method1(ref ao, 0, ref ab, null); + } + catch (NullReferenceException) + { + return 100; + } + return -1; + } + } +} |