summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Directed/coverage/oldtests/switchdefaultonly2.il
blob: dbca4e707729c5e2514bbe2f9dff5f76742ad495 (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
38
39
40
41
42
43
44
45
46
// 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 legacy library mscorlib {}
.assembly extern System.Console
{
  .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
  .ver 4:0:0:0
}
.assembly switchdefaultonly1 {}
.class private auto ansi beforefieldinit switchdefaultonly1
       extends [mscorlib]System.Object
{
  .method private hidebysig static int32  Main(string[] args) cil managed
  {
    .entrypoint
    // Code size       49 (0x31)
    .maxstack  2
    .locals init (int32 V_0)
    IL_0000:  ldarg.0
    IL_0001:  ldlen
    IL_0002:  conv.i4
    IL_0003:  stloc.0
    IL_0004:  ldloc.0
    IL_0005:  ldc.i4.1
    IL_0006:  sub
    IL_0007:  switch     (IL_0014)
    IL_0014:  br.s       IL_0026

    IL_001c:  br.s       IL_0030

    IL_001e:  ldc.i4.2
    IL_001f:  call       void [System.Console]System.Console::WriteLine(int32)
    IL_0024:  br.s       IL_0030

    IL_0026:  ldarg.0
    IL_0027:  ldlen
    IL_0028:  conv.i4
    IL_0029:  call       void [System.Console]System.Console::WriteLine(int32)
    IL_002e:  br.s       IL_0030

    IL_0030:  ldc.i4 100	ret
  }

}