Skip to content

Commit 2f858e0

Browse files
Baseline new warning in trimming tests (#114424)
ToolsTests legs are failing: #114406 (comment) Psychic debugging (without actually trying to repro anything) tells me this is from #114346 that makes us emit more dynamic keyword warnings. That PR didn't trigger the ToolsTests leg since it's not a ILLink change.
1 parent 8785241 commit 2f858e0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/tools/illink/test/Mono.Linker.Tests.Cases/DataFlow/DynamicObjects.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class InvocationOnDynamicType
3030
{
3131
[ExpectedWarning ("IL2026", "Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember")]
3232
[ExpectedWarning ("IL3050", Tool.NativeAot, "https://github.com/dotnet/runtime/issues/94427")]
33+
[ExpectedWarning ("IL3050", Tool.NativeAot, "https://github.com/dotnet/runtime/issues/94427")]
3334
static void DynamicArgument ()
3435
{
3536
dynamic dynamicObject = "Some string";
@@ -49,6 +50,7 @@ static void MethodWithDynamicParameterDoNothing (dynamic arg)
4950

5051
[ExpectedWarning ("IL2026", "Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember")]
5152
[ExpectedWarning ("IL3050", Tool.NativeAot, "https://github.com/dotnet/runtime/issues/94427")]
53+
[ExpectedWarning ("IL3050", Tool.NativeAot, "https://github.com/dotnet/runtime/issues/94427")]
5254
static void MethodWithDynamicParameter (dynamic arg)
5355
{
5456
arg.MethodWithDynamicParameter (arg);
@@ -82,13 +84,15 @@ class DynamicMemberReference
8284
{
8385
[ExpectedWarning ("IL2026", "Microsoft.CSharp.RuntimeBinder.Binder.GetMember")]
8486
[ExpectedWarning ("IL3050", Tool.NativeAot, "https://github.com/dotnet/runtime/issues/94427")]
87+
[ExpectedWarning ("IL3050", Tool.NativeAot, "https://github.com/dotnet/runtime/issues/94427")]
8588
static void Read (dynamic d)
8689
{
8790
var x = d.Member;
8891
}
8992

9093
[ExpectedWarning ("IL2026", "Microsoft.CSharp.RuntimeBinder.Binder.SetMember")]
9194
[ExpectedWarning ("IL3050", Tool.NativeAot, "https://github.com/dotnet/runtime/issues/94427")]
95+
[ExpectedWarning ("IL3050", Tool.NativeAot, "https://github.com/dotnet/runtime/issues/94427")]
9296
static void Write (dynamic d)
9397
{
9498
d.Member = 0;
@@ -105,13 +109,15 @@ class DynamicIndexerAccess
105109
{
106110
[ExpectedWarning ("IL2026", "Microsoft.CSharp.RuntimeBinder.Binder.GetIndex")]
107111
[ExpectedWarning ("IL3050", Tool.NativeAot, "https://github.com/dotnet/runtime/issues/94427")]
112+
[ExpectedWarning ("IL3050", Tool.NativeAot, "https://github.com/dotnet/runtime/issues/94427")]
108113
static void Read (dynamic d)
109114
{
110115
var x = d[0];
111116
}
112117

113118
[ExpectedWarning ("IL2026", "Microsoft.CSharp.RuntimeBinder.Binder.SetIndex")]
114119
[ExpectedWarning ("IL3050", Tool.NativeAot, "https://github.com/dotnet/runtime/issues/94427")]
120+
[ExpectedWarning ("IL3050", Tool.NativeAot, "https://github.com/dotnet/runtime/issues/94427")]
115121
static void Write (dynamic d)
116122
{
117123
d[0] = 0;
@@ -129,6 +135,7 @@ class DynamicInRequiresUnreferencedCodeClass
129135
[RequiresUnreferencedCode("message")]
130136
class ClassWithRequires
131137
{
138+
[ExpectedWarning ("IL3050", Tool.NativeAot, "https://github.com/dotnet/runtime/issues/94427")]
132139
[ExpectedWarning ("IL3050", Tool.NativeAot, "https://github.com/dotnet/runtime/issues/94427")]
133140
public static void MethodWithDynamicArg (dynamic arg)
134141
{

0 commit comments

Comments
 (0)