diff --git a/src/tests/JIT/opt/RedundantBranch/RedundantBranchUnsigned2.cs b/src/tests/JIT/opt/RedundantBranch/RedundantBranchUnsigned2.cs index 7612414e4d1a58..b42c951517a039 100644 --- a/src/tests/JIT/opt/RedundantBranch/RedundantBranchUnsigned2.cs +++ b/src/tests/JIT/opt/RedundantBranch/RedundantBranchUnsigned2.cs @@ -9,7 +9,7 @@ public class RedundantBranchUnsigned2 { [Fact] - public static int TestEntryPoint() + public static void TestEntryPoint() { int[] arr1 = new int[2]; Test_Span1(arr1, -1); @@ -37,7 +37,6 @@ public static int TestEntryPoint() // Should not throw NRE Test_Array(arr3, -1); - return 100; } private static void Throws(Action action) where T : Exception