Skip to content

Commit

Permalink
Add tests for '[ConstantExpected]' attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Nov 21, 2024
1 parent 8ed69f9 commit cd55412
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/PolySharp.Tests/LanguageFeatures.cs
Original file line number Diff line number Diff line change
Expand Up @@ -285,4 +285,15 @@ public static void TestOverload(int x)
public static void TestOverload(int x, int y = 0)
{
}
}
}

internal static class ConstantExpectedTests
{
public static void CpuIntrinsic([ConstantExpected] int value)
{
}

public static void AnotherCpuIntrinsic([ConstantExpected(Min = 0, Max = 8)] int value)
{
}
}

0 comments on commit cd55412

Please sign in to comment.