summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Methodical/switch/switch11.il
blob: b2375b0f4fe353c9122c43baa187d576befaa541 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// 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.
// non-empty stack before switch

.assembly extern legacy library mscorlib {}
.assembly 'switch11'
{
  
  
}

.module 'switch11.exe'

.class public auto ansi Test
       extends ['mscorlib']System.Object
{
  .method public hidebysig static void Main() il managed
  {
    .entrypoint
    .maxstack  8
              ldc.i4.5
    IL_0000:  br.s       IL_0002

    IL_0002:  br.s       IL_0004

    IL_0004:  ldc.i4.s   100
    IL_0006:  call       void ['system.runtime.extensions']System.Environment::set_ExitCode(int32)
    IL_000b:  ldstr      "Test passed"
    IL_0010:  call       void ['mscorlib']System.Console::WriteLine(class System.String)
    IL_0015:  pop
              call       int32 ['system.runtime.extensions']System.Environment::get_ExitCode()
              call       void ['system.runtime.extensions']System.Environment::Exit(int32)
              ret
  } 

}