Skip to content

Commit

Permalink
Removing unused il test args
Browse files Browse the repository at this point in the history
Replacing arg string with empty string
  • Loading branch information
BrianBohe committed Feb 8, 2023
1 parent 4cda2c4 commit 03634e4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
10 changes: 6 additions & 4 deletions src/tests/JIT/Directed/coverage/oldtests/switchdefaultonly1.il
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
.class private auto ansi beforefieldinit switchdefaultonly1
extends [mscorlib]System.Object
{
.method private hidebysig static int32 Main(string[] args) cil managed
.method private hidebysig static int32 Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
Expand All @@ -21,16 +21,18 @@
// Code size 49 (0x31)
.maxstack 2
.locals init (int32 V_0)
IL_0000: ldarg.0
ldc.i4.s 0
IL_0000: newarr [mscorlib]System.String
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_0026: ldarg.0
IL_0014: br.s IL_0025
IL_0025: ldc.i4.s 0
IL_0026: newarr [mscorlib]System.String
IL_0027: ldlen
IL_0028: conv.i4
IL_0029: call void [System.Console]System.Console::WriteLine(int32)
Expand Down
11 changes: 6 additions & 5 deletions src/tests/JIT/Directed/coverage/oldtests/switchdefaultonly2.il
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
.class private auto ansi beforefieldinit switchdefaultonly1
extends [mscorlib]System.Object
{
.method private hidebysig static int32 Main(string[] args) cil managed
.method private hidebysig static int32 Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
Expand All @@ -21,23 +21,24 @@
// Code size 49 (0x31)
.maxstack 2
.locals init (int32 V_0)
IL_0000: ldarg.0
ldc.i4.s 0
IL_0000: newarr [mscorlib]System.String
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_0014: br.s IL_0025

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_0025: ldc.i4.s 0
IL_0026: newarr [mscorlib]System.String
IL_0027: ldlen
IL_0028: conv.i4
IL_0029: call void [System.Console]System.Console::WriteLine(int32)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
.class private auto ansi beforefieldinit switchdefaultonly1
extends [mscorlib]System.Object
{
.method private hidebysig static int32 Main(string[] args) cil managed
.method private hidebysig static int32 Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
Expand All @@ -21,7 +21,8 @@
// Code size 49 (0x31)
.maxstack 2
.locals init (int32 V_0)
IL_0000: ldarg.0
ldc.i4.s 0
IL_0000: newarr [mscorlib]System.String
IL_0001: ldlen
IL_0002: conv.i4
IL_0003: stloc.0
Expand All @@ -32,7 +33,8 @@
IL_0014: br.s IL_0026
IL_0026: .try
{
ldarg.0
ldc.i4.s 0
newarr [mscorlib]System.String
ldlen
conv.i4
call void [System.Console]System.Console::WriteLine(int32)
Expand Down

0 comments on commit 03634e4

Please sign in to comment.