Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitek Karas <10670590+vitek-karas@users.noreply.github.com>2022-08-08 17:19:25 +0300
committerGitHub <noreply@github.com>2022-08-08 17:19:25 +0300
commitb6920a953e03ed6e01c159730c699bf228615f4d (patch)
tree8ffa39e0943bfd426da2bf5ea8c069879f3cf15d /test/Mono.Linker.Tests.Cases/DataFlow/GetTypeDataFlow.cs
parent4d524405b20345fb269e46ef2078e27acf26a127 (diff)
Aot to linker sync (#2944)
Sync tweaks necessary for the linker/AOT integration
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/DataFlow/GetTypeDataFlow.cs')
-rw-r--r--test/Mono.Linker.Tests.Cases/DataFlow/GetTypeDataFlow.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Mono.Linker.Tests.Cases/DataFlow/GetTypeDataFlow.cs b/test/Mono.Linker.Tests.Cases/DataFlow/GetTypeDataFlow.cs
index ef58eac31..4e2998d23 100644
--- a/test/Mono.Linker.Tests.Cases/DataFlow/GetTypeDataFlow.cs
+++ b/test/Mono.Linker.Tests.Cases/DataFlow/GetTypeDataFlow.cs
@@ -91,7 +91,7 @@ namespace Mono.Linker.Tests.Cases.DataFlow
[ExpectedWarning ("IL2057", nameof (GetType))]
static void TestUnknownType ()
{
- Type type = Type.GetType (GetStringUnkownType ());
+ Type type = Type.GetType (GetStringUnknownType ());
}
[ExpectedWarning ("IL2072", nameof (DataFlowTypeExtensions.RequiresPublicConstructors))]
@@ -155,7 +155,7 @@ namespace Mono.Linker.Tests.Cases.DataFlow
typeName = "Mono.Linker.Tests.Cases.DataFlow.GetTypeDataFlow";
break;
case 3:
- typeName = GetStringUnkownType ();
+ typeName = GetStringUnknownType ();
break;
}
@@ -171,8 +171,8 @@ namespace Mono.Linker.Tests.Cases.DataFlow
public void Method2 () { }
// https://github.com/dotnet/linker/issues/2273
- [ExpectedWarning ("IL2026", "--Method1--", ProducedBy = ProducedBy.Trimmer)]
- [ExpectedWarning ("IL2026", "--Method2--", ProducedBy = ProducedBy.Trimmer)]
+ [ExpectedWarning ("IL2026", "--Method1--", ProducedBy = ProducedBy.Trimmer | ProducedBy.NativeAot)]
+ [ExpectedWarning ("IL2026", "--Method2--", ProducedBy = ProducedBy.Trimmer | ProducedBy.NativeAot)]
public static void Test ()
{
Type.GetType ("Mono.Linker.Tests.Cases.DataFlow." + nameof (GetTypeDataFlow) + "+" + nameof (TypeWithWarnings)).RequiresPublicMethods ();
@@ -187,7 +187,7 @@ namespace Mono.Linker.Tests.Cases.DataFlow
public void Method1 () { }
// https://github.com/dotnet/linker/issues/2273
- [ExpectedWarning ("IL2026", "--Method1--", ProducedBy = ProducedBy.Trimmer)]
+ [ExpectedWarning ("IL2026", "--Method1--", ProducedBy = ProducedBy.Trimmer | ProducedBy.NativeAot)]
public static void Test ()
{
Type.GetType (s_ConstTypeName).RequiresPublicMethods ();
@@ -212,7 +212,7 @@ namespace Mono.Linker.Tests.Cases.DataFlow
return null;
}
- private static string GetStringUnkownType ()
+ private static string GetStringUnknownType ()
{
return null;
}