Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
SingleAccretion committed Jun 5, 2022
1 parent d9768bc commit 55b6671
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/tests/JIT/Regression/JitBlue/Runtime_70124/Runtime_70124.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.Numerics;
using System.Runtime.CompilerServices;

public class Runtime_70124
{
public static int Main()
{
return Problem(Vector2.One, Vector2.One) != new Vector2(3, 3) ? 101 : 100;
}

[MethodImpl(MethodImplOptions.NoInlining)]
private static Vector2 Problem(Vector2 a, Vector2 b)
{
CallForVtor2(a + b);

return (a + b) + a;
}

[MethodImpl(MethodImplOptions.NoInlining)]
private static void CallForVtor2(Vector2 vtor) { }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).cs" />
</ItemGroup>
</Project>

0 comments on commit 55b6671

Please sign in to comment.