diff options
Diffstat (limited to 'tests/src/JIT/Methodical/eh/interactions/ehSO.cs')
-rw-r--r-- | tests/src/JIT/Methodical/eh/interactions/ehSO.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/src/JIT/Methodical/eh/interactions/ehSO.cs b/tests/src/JIT/Methodical/eh/interactions/ehSO.cs new file mode 100644 index 0000000000..db16b15336 --- /dev/null +++ b/tests/src/JIT/Methodical/eh/interactions/ehSO.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. + +/* +Spilling volatile objects opposed to spilling only + the exception objects. The equivalence of GTF_OTHER_SIDEEFF and + GT_CATCH_ARG is altered by impGetByRefResultType. + +Actual Results: +System.StackOverflowException during JIT of function + +Expected Results: +no exception +*/ + +public class Form1 +{ + public static volatile bool RunsInWebServer = false; + + + public Form1() + { + try + { + } + catch + { + string lT = string.Format("{0}", RunsInWebServer); + } + } + + public static int Main() + { + Form1 f = new Form1(); + return 100; + } +} + |