Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit dd99f66

Browse files
committed
Fix test for GT_INDEX_ADDR to forcibly compile with minopts
Update test introduced in #20047 so that the key method `ReadBytes` is compiled with minopts by default.
1 parent ad096c8 commit dd99f66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/src/JIT/Regression/JitBlue/GitHub_20040/GitHub_20040.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// See the LICENSE file in the project root for more information.
44

55
using System;
6+
using System.Runtime.CompilerServices;
67

78
// GitHub 20040: operand ordering bug with GT_INDEX_ADDR
89
// Requires minopts/tier0 to repro
@@ -48,6 +49,7 @@ byte[] CheckLength(out int offset)
4849
return currentBuffer;
4950
}
5051

52+
[MethodImpl(MethodImplOptions.NoOptimization | MethodImplOptions.NoInlining)]
5153
public byte ReadByte()
5254
{
5355
int offset;

0 commit comments

Comments
 (0)