diff options
Diffstat (limited to 'tests/src/baseservices/exceptions/regressions/v1.0/19896.cs')
-rw-r--r-- | tests/src/baseservices/exceptions/regressions/v1.0/19896.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/src/baseservices/exceptions/regressions/v1.0/19896.cs b/tests/src/baseservices/exceptions/regressions/v1.0/19896.cs new file mode 100644 index 0000000000..c6e6e62365 --- /dev/null +++ b/tests/src/baseservices/exceptions/regressions/v1.0/19896.cs @@ -0,0 +1,34 @@ +// 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; + +public class b19896 +{ + public static int Main(string[] args) + { + int retVal = 200; + + try + { + try + { + throw new Exception(); + } + catch + { + Type.GetType("System.Foo", true); + } + } + + catch(System.TypeLoadException) + { + Console.WriteLine("TEST PASSED"); + retVal = 100; + } + + return retVal; + } +} + +//EOF
\ No newline at end of file |