Skip to content

Commit 1205592

Browse files
committed
Updating more_tails.cs and respective il
1 parent e380946 commit 1205592

File tree

2 files changed

+1332
-879
lines changed

2 files changed

+1332
-879
lines changed

src/tests/JIT/Directed/tailcall/more_tailcalls.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using System.Diagnostics;
1111
using System.Reflection;
1212
using System.Runtime.CompilerServices;
13+
using Xunit;
1314

1415
struct S16
1516
{
@@ -48,7 +49,7 @@ class HeapInt
4849
public override string ToString() => $"{Value}";
4950
}
5051

51-
internal class Program
52+
public class Program
5253
{
5354
private static readonly IntPtr s_calcStaticCalli;
5455
private static readonly IntPtr s_calcStaticCalliOther;
@@ -84,7 +85,8 @@ static Program()
8485
s_instanceMethodOnValueType = instanceMethodOnValueType;
8586
}
8687

87-
private static int Main()
88+
[Fact]
89+
public static int Main()
8890
{
8991
const int numCalcIters = 1000000;
9092
const int countUpIters = 1000000;

0 commit comments

Comments
 (0)