diff options
Diffstat (limited to 'tests/src/Loader/classloader/SequentialLayout/Regress/217070/t1.il')
-rw-r--r-- | tests/src/Loader/classloader/SequentialLayout/Regress/217070/t1.il | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/tests/src/Loader/classloader/SequentialLayout/Regress/217070/t1.il b/tests/src/Loader/classloader/SequentialLayout/Regress/217070/t1.il new file mode 100644 index 0000000000..97338a6af7 --- /dev/null +++ b/tests/src/Loader/classloader/SequentialLayout/Regress/217070/t1.il @@ -0,0 +1,51 @@ +// 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. + +.assembly extern System.Console { } +.assembly extern mscorlib { } +.assembly typeload { } + +.class public main extends [mscorlib]System.Object +{ + .class sequential sealed nested private NumberNode + extends [mscorlib]System.ValueType + { + .field public int32 i + .field public valuetype main/NumberNode[] next + } + + .method public static int32 Main() + { + .entrypoint + .locals init (valuetype main/NumberNode[] V_0, + class [mscorlib]System.Exception V_1, + int32 V_2) + .try + { + ldc.i4.1 + newarr main/NumberNode + stloc.0 + + ldstr "PASS" + call void [System.Console]System.Console::WriteLine(string) + ldc.i4.s 100 + stloc.2 + leave.s end + } + catch [mscorlib]System.Exception + { + stloc.1 + ldstr "{0}Caught unexpected exception." + ldloc.1 + call void [System.Console]System.Console::WriteLine(string,object) + ldstr "FAIL" + call void [System.Console]System.Console::WriteLine(string) + ldc.i4.s 101 + stloc.2 + leave.s end + } + end: ldloc.2 + ret + } +} |