diff options
Diffstat (limited to 'tests/src/JIT/Methodical/switch/switch4.il')
-rw-r--r-- | tests/src/JIT/Methodical/switch/switch4.il | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/tests/src/JIT/Methodical/switch/switch4.il b/tests/src/JIT/Methodical/switch/switch4.il index 047be6d214..51c848069c 100644 --- a/tests/src/JIT/Methodical/switch/switch4.il +++ b/tests/src/JIT/Methodical/switch/switch4.il @@ -1,13 +1,16 @@ // 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. + + // loop in switch +.assembly extern System.Runtime.Extensions { auto } +.assembly extern legacy library mscorlib { auto } -.assembly extern legacy library mscorlib {} .assembly 'switch4' { - - + + } .module 'switch4.exe' @@ -56,17 +59,17 @@ IL_002e: bne.un.s IL_0043 IL_0030: ldc.i4.s 100 - IL_0032: call void ['system.runtime.extensions']System.Environment::set_ExitCode(int32) + IL_0032: call void ['System.Runtime.Extensions']System.Environment::set_ExitCode(int32) IL_0037: ldstr "Test passed" IL_003c: call void ['mscorlib']System.Console::WriteLine(class System.String) IL_0041: br.s IL_0053 IL_0043: ldc.i4.1 - IL_0044: call void ['system.runtime.extensions']System.Environment::set_ExitCode(int32) + IL_0044: call void ['System.Runtime.Extensions']System.Environment::set_ExitCode(int32) IL_0049: ldstr "Test failed" IL_004e: call void ['mscorlib']System.Console::WriteLine(class System.String) IL_0053: ret - } + } .method public hidebysig static void Main() il managed { @@ -74,9 +77,9 @@ .maxstack 8 IL_0000: ldc.i4.1 IL_0001: call void Test::DoSwitch(int32) - IL_0006: call int32 ['system.runtime.extensions']System.Environment::get_ExitCode() - call void ['system.runtime.extensions']System.Environment::Exit(int32) + IL_0006: call int32 ['System.Runtime.Extensions']System.Environment::get_ExitCode() + call void ['System.Runtime.Extensions']System.Environment::Exit(int32) ret - } + } -} +} |