Skip to content

Commit

Permalink
Consolidate emitted IL for-loop tests (#17128)
Browse files Browse the repository at this point in the history
* Consolidate emitted IL `for`-loop tests

* The test sources and baselines for these were duplicated in #15484 to
  test the realsig feature, but that meant that the test _sources_
  needed to be kept in sync by hand. This change uses the approach used
  in #16795 instead: it reuses the same test _source_ files and just
  adds duplicate _tests_ to check the emitted IL with realsig+.

* Update netfx baselines

* Fix find/replace bug

* Unify netstandard assembly version in IL

* Re-update baselines

---------

Co-authored-by: Kevin Ransom (msft) <codecutter@hotmail.com>
  • Loading branch information
brianrourkeboll and KevinRansom committed May 13, 2024
1 parent 75c3558 commit 7b0586c
Show file tree
Hide file tree
Showing 149 changed files with 943 additions and 9,706 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@
extends class [FSharp.Core]Microsoft.FSharp.Core.FSharpFunc`2<int32,int32>
{
.field static assembly initonly class assembly/test6@38 @_instance
.method assembly specialname rtspecialname
instance void .ctor() cil managed
.method assembly specialname rtspecialname instance void .ctor() cil managed
{
.custom instance void [runtime]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 )
.custom instance void [runtime]System.Diagnostics.DebuggerNonUserCodeAttribute::.ctor() = ( 01 00 00 00 )
Expand All @@ -64,8 +63,7 @@
IL_0006: ret
}

.method public strict virtual instance int32
Invoke(int32 x) cil managed
.method public strict virtual instance int32 Invoke(int32 x) cil managed
{

.maxstack 8
Expand All @@ -75,8 +73,7 @@
IL_0003: ret
}

.method private specialname rtspecialname static
void .cctor() cil managed
.method private specialname rtspecialname static void .cctor() cil managed
{

.maxstack 10
Expand All @@ -91,8 +88,7 @@
extends class [FSharp.Core]Microsoft.FSharp.Core.FSharpFunc`2<int32,int32>
{
.field static assembly initonly class assembly/test7@47 @_instance
.method assembly specialname rtspecialname
instance void .ctor() cil managed
.method assembly specialname rtspecialname instance void .ctor() cil managed
{
.custom instance void [runtime]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 )
.custom instance void [runtime]System.Diagnostics.DebuggerNonUserCodeAttribute::.ctor() = ( 01 00 00 00 )
Expand All @@ -103,8 +99,7 @@
IL_0006: ret
}

.method public strict virtual instance int32
Invoke(int32 x) cil managed
.method public strict virtual instance int32 Invoke(int32 x) cil managed
{

.maxstack 8
Expand All @@ -114,8 +109,7 @@
IL_0003: ret
}

.method private specialname rtspecialname static
void .cctor() cil managed
.method private specialname rtspecialname static void .cctor() cil managed
{

.maxstack 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@
extends class [FSharp.Core]Microsoft.FSharp.Core.FSharpFunc`2<int32,int32>
{
.field static assembly initonly class assembly/test6@38 @_instance
.method assembly specialname rtspecialname
instance void .ctor() cil managed
.method assembly specialname rtspecialname instance void .ctor() cil managed
{
.custom instance void [runtime]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 )
.custom instance void [runtime]System.Diagnostics.DebuggerNonUserCodeAttribute::.ctor() = ( 01 00 00 00 )
Expand All @@ -64,8 +63,7 @@
IL_0006: ret
}

.method public strict virtual instance int32
Invoke(int32 x) cil managed
.method public strict virtual instance int32 Invoke(int32 x) cil managed
{

.maxstack 8
Expand All @@ -75,8 +73,7 @@
IL_0003: ret
}

.method private specialname rtspecialname static
void .cctor() cil managed
.method private specialname rtspecialname static void .cctor() cil managed
{

.maxstack 10
Expand All @@ -91,8 +88,7 @@
extends class [FSharp.Core]Microsoft.FSharp.Core.FSharpFunc`2<int32,int32>
{
.field static assembly initonly class assembly/test7@47 @_instance
.method assembly specialname rtspecialname
instance void .ctor() cil managed
.method assembly specialname rtspecialname instance void .ctor() cil managed
{
.custom instance void [runtime]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 )
.custom instance void [runtime]System.Diagnostics.DebuggerNonUserCodeAttribute::.ctor() = ( 01 00 00 00 )
Expand All @@ -103,8 +99,7 @@
IL_0006: ret
}

.method public strict virtual instance int32
Invoke(int32 x) cil managed
.method public strict virtual instance int32 Invoke(int32 x) cil managed
{

.maxstack 8
Expand All @@ -114,8 +109,7 @@
IL_0003: ret
}

.method private specialname rtspecialname static
void .cctor() cil managed
.method private specialname rtspecialname static void .cctor() cil managed
{

.maxstack 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@
extends class [FSharp.Core]Microsoft.FSharp.Core.FSharpFunc`2<char,char>
{
.field static assembly initonly class assembly/test8@54 @_instance
.method assembly specialname rtspecialname
instance void .ctor() cil managed
.method assembly specialname rtspecialname instance void .ctor() cil managed
{
.custom instance void [runtime]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 )
.custom instance void [runtime]System.Diagnostics.DebuggerNonUserCodeAttribute::.ctor() = ( 01 00 00 00 )
Expand All @@ -64,8 +63,7 @@
IL_0006: ret
}

.method public strict virtual instance char
Invoke(char x) cil managed
.method public strict virtual instance char Invoke(char x) cil managed
{

.maxstack 8
Expand All @@ -77,8 +75,7 @@
IL_0005: ret
}

.method private specialname rtspecialname static
void .cctor() cil managed
.method private specialname rtspecialname static void .cctor() cil managed
{

.maxstack 10
Expand All @@ -93,8 +90,7 @@
extends class [FSharp.Core]Microsoft.FSharp.Core.FSharpFunc`2<char,char>
{
.field static assembly initonly class assembly/test9@63 @_instance
.method assembly specialname rtspecialname
instance void .ctor() cil managed
.method assembly specialname rtspecialname instance void .ctor() cil managed
{
.custom instance void [runtime]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 )
.custom instance void [runtime]System.Diagnostics.DebuggerNonUserCodeAttribute::.ctor() = ( 01 00 00 00 )
Expand All @@ -105,8 +101,7 @@
IL_0006: ret
}

.method public strict virtual instance char
Invoke(char x) cil managed
.method public strict virtual instance char Invoke(char x) cil managed
{

.maxstack 8
Expand All @@ -118,8 +113,7 @@
IL_0005: ret
}

.method private specialname rtspecialname static
void .cctor() cil managed
.method private specialname rtspecialname static void .cctor() cil managed
{

.maxstack 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@
extends class [FSharp.Core]Microsoft.FSharp.Core.FSharpFunc`2<char,char>
{
.field static assembly initonly class assembly/test8@54 @_instance
.method assembly specialname rtspecialname
instance void .ctor() cil managed
.method assembly specialname rtspecialname instance void .ctor() cil managed
{
.custom instance void [runtime]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 )
.custom instance void [runtime]System.Diagnostics.DebuggerNonUserCodeAttribute::.ctor() = ( 01 00 00 00 )
Expand All @@ -64,8 +63,7 @@
IL_0006: ret
}

.method public strict virtual instance char
Invoke(char x) cil managed
.method public strict virtual instance char Invoke(char x) cil managed
{

.maxstack 8
Expand All @@ -77,8 +75,7 @@
IL_0005: ret
}

.method private specialname rtspecialname static
void .cctor() cil managed
.method private specialname rtspecialname static void .cctor() cil managed
{

.maxstack 10
Expand All @@ -93,8 +90,7 @@
extends class [FSharp.Core]Microsoft.FSharp.Core.FSharpFunc`2<char,char>
{
.field static assembly initonly class assembly/test9@63 @_instance
.method assembly specialname rtspecialname
instance void .ctor() cil managed
.method assembly specialname rtspecialname instance void .ctor() cil managed
{
.custom instance void [runtime]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 )
.custom instance void [runtime]System.Diagnostics.DebuggerNonUserCodeAttribute::.ctor() = ( 01 00 00 00 )
Expand All @@ -105,8 +101,7 @@
IL_0006: ret
}

.method public strict virtual instance char
Invoke(char x) cil managed
.method public strict virtual instance char Invoke(char x) cil managed
{

.maxstack 8
Expand All @@ -118,8 +113,7 @@
IL_0005: ret
}

.method private specialname rtspecialname static
void .cctor() cil managed
.method private specialname rtspecialname static void .cctor() cil managed
{

.maxstack 10
Expand Down

0 comments on commit 7b0586c

Please sign in to comment.