diff options
Diffstat (limited to 'tests/src/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b48929/b48929.cs')
-rw-r--r-- | tests/src/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b48929/b48929.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b48929/b48929.cs b/tests/src/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b48929/b48929.cs new file mode 100644 index 0000000000..27517b3ad7 --- /dev/null +++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b48929/b48929.cs @@ -0,0 +1,32 @@ +// 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. +// + +namespace Test +{ + using System; + + class AA + { + static uint[] m_au = new uint[2]; + static void Main1() + { + int D = 18; + do + { + m_au[0] = 0; + } while (D == 0); + throw new Exception(); + } + static int Main() + { + try + { + Main1(); + } + catch (Exception) { return 100; } + return -1; + } + } +} |