Skip to content

Commit 03634e4

Browse files
committed
Removing unused il test args
Replacing arg string with empty string
1 parent 4cda2c4 commit 03634e4

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

src/tests/JIT/Directed/coverage/oldtests/switchdefaultonly1.il

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
.class private auto ansi beforefieldinit switchdefaultonly1
1313
extends [mscorlib]System.Object
1414
{
15-
.method private hidebysig static int32 Main(string[] args) cil managed
15+
.method private hidebysig static int32 Main() cil managed
1616
{
1717
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
1818
01 00 00 00
@@ -21,16 +21,18 @@
2121
// Code size 49 (0x31)
2222
.maxstack 2
2323
.locals init (int32 V_0)
24-
IL_0000: ldarg.0
24+
ldc.i4.s 0
25+
IL_0000: newarr [mscorlib]System.String
2526
IL_0001: ldlen
2627
IL_0002: conv.i4
2728
IL_0003: stloc.0
2829
IL_0004: ldloc.0
2930
IL_0005: ldc.i4.1
3031
IL_0006: sub
3132
IL_0007: switch (IL_0014)
32-
IL_0014: br.s IL_0026
33-
IL_0026: ldarg.0
33+
IL_0014: br.s IL_0025
34+
IL_0025: ldc.i4.s 0
35+
IL_0026: newarr [mscorlib]System.String
3436
IL_0027: ldlen
3537
IL_0028: conv.i4
3638
IL_0029: call void [System.Console]System.Console::WriteLine(int32)

src/tests/JIT/Directed/coverage/oldtests/switchdefaultonly2.il

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
.class private auto ansi beforefieldinit switchdefaultonly1
1313
extends [mscorlib]System.Object
1414
{
15-
.method private hidebysig static int32 Main(string[] args) cil managed
15+
.method private hidebysig static int32 Main() cil managed
1616
{
1717
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
1818
01 00 00 00
@@ -21,23 +21,24 @@
2121
// Code size 49 (0x31)
2222
.maxstack 2
2323
.locals init (int32 V_0)
24-
IL_0000: ldarg.0
24+
ldc.i4.s 0
25+
IL_0000: newarr [mscorlib]System.String
2526
IL_0001: ldlen
2627
IL_0002: conv.i4
2728
IL_0003: stloc.0
2829
IL_0004: ldloc.0
2930
IL_0005: ldc.i4.1
3031
IL_0006: sub
3132
IL_0007: switch (IL_0014)
32-
IL_0014: br.s IL_0026
33+
IL_0014: br.s IL_0025
3334

3435
IL_001c: br.s IL_0030
3536

3637
IL_001e: ldc.i4.2
3738
IL_001f: call void [System.Console]System.Console::WriteLine(int32)
3839
IL_0024: br.s IL_0030
39-
40-
IL_0026: ldarg.0
40+
IL_0025: ldc.i4.s 0
41+
IL_0026: newarr [mscorlib]System.String
4142
IL_0027: ldlen
4243
IL_0028: conv.i4
4344
IL_0029: call void [System.Console]System.Console::WriteLine(int32)

src/tests/JIT/Directed/coverage/oldtests/switchdefaultonly3.il

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
.class private auto ansi beforefieldinit switchdefaultonly1
1313
extends [mscorlib]System.Object
1414
{
15-
.method private hidebysig static int32 Main(string[] args) cil managed
15+
.method private hidebysig static int32 Main() cil managed
1616
{
1717
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
1818
01 00 00 00
@@ -21,7 +21,8 @@
2121
// Code size 49 (0x31)
2222
.maxstack 2
2323
.locals init (int32 V_0)
24-
IL_0000: ldarg.0
24+
ldc.i4.s 0
25+
IL_0000: newarr [mscorlib]System.String
2526
IL_0001: ldlen
2627
IL_0002: conv.i4
2728
IL_0003: stloc.0
@@ -32,7 +33,8 @@
3233
IL_0014: br.s IL_0026
3334
IL_0026: .try
3435
{
35-
ldarg.0
36+
ldc.i4.s 0
37+
newarr [mscorlib]System.String
3638
ldlen
3739
conv.i4
3840
call void [System.Console]System.Console::WriteLine(int32)

0 commit comments

Comments
 (0)