Skip to content

Commit cd55412

Browse files
committed
Add tests for '[ConstantExpected]' attribute
1 parent 8ed69f9 commit cd55412

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

tests/PolySharp.Tests/LanguageFeatures.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,4 +285,15 @@ public static void TestOverload(int x)
285285
public static void TestOverload(int x, int y = 0)
286286
{
287287
}
288-
}
288+
}
289+
290+
internal static class ConstantExpectedTests
291+
{
292+
public static void CpuIntrinsic([ConstantExpected] int value)
293+
{
294+
}
295+
296+
public static void AnotherCpuIntrinsic([ConstantExpected(Min = 0, Max = 8)] int value)
297+
{
298+
}
299+
}

0 commit comments

Comments
 (0)