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:
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/Libraries/RootLibrary.cs')
-rw-r--r--test/Mono.Linker.Tests.Cases/Libraries/RootLibrary.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Libraries/RootLibrary.cs b/test/Mono.Linker.Tests.Cases/Libraries/RootLibrary.cs
index eebdbf67c..03cf665de 100644
--- a/test/Mono.Linker.Tests.Cases/Libraries/RootLibrary.cs
+++ b/test/Mono.Linker.Tests.Cases/Libraries/RootLibrary.cs
@@ -12,7 +12,9 @@ using Mono.Linker.Tests.Cases.Libraries.Dependencies;
namespace Mono.Linker.Tests.Cases.Libraries
{
[SetupCompileBefore ("copylibrary.dll", new[] { "Dependencies/CopyLibrary.cs" })]
+ [SetupCompileBefore ("skiplibrary.dll", new[] { "Dependencies/SkipLibrary.cs" })]
[SetupLinkerAction ("copy", "copylibrary")]
+ [SetupLinkerAction ("skip", "skiplibrary")]
[SetupLinkerArgument ("-a", "test.exe", "library")]
[SetupLinkerArgument ("--enable-opt", "ipconstprop")]
[VerifyMetadataNames]
@@ -188,6 +190,7 @@ namespace Mono.Linker.Tests.Cases.Libraries
[KeptInterface (typeof (IInternalStaticInterface))]
[KeptInterface (typeof (ICopyLibraryInterface))]
[KeptInterface (typeof (ICopyLibraryStaticInterface))]
+ [KeptInterface (typeof (ISkipLibraryStaticInterface))]
public class UninstantiatedPublicClassWithInterface :
IPublicInterface,
IPublicStaticInterface,
@@ -195,7 +198,8 @@ namespace Mono.Linker.Tests.Cases.Libraries
IInternalStaticInterface,
IEnumerator,
ICopyLibraryInterface,
- ICopyLibraryStaticInterface
+ ICopyLibraryStaticInterface,
+ ISkipLibraryStaticInterface
{
internal UninstantiatedPublicClassWithInterface () { }
@@ -241,7 +245,12 @@ namespace Mono.Linker.Tests.Cases.Libraries
public static void CopyLibraryStaticInterfaceMethod () { }
[Kept]
+ [KeptOverride (typeof (ICopyLibraryStaticInterface))]
static void ICopyLibraryStaticInterface.CopyLibraryExplicitImplementationStaticInterfaceMethod () { }
+
+ [Kept]
+ [KeptOverride (typeof (ISkipLibraryStaticInterface))]
+ static void ISkipLibraryStaticInterface.StaticInterfaceMethod () { }
}
[Kept]
@@ -325,6 +334,7 @@ namespace Mono.Linker.Tests.Cases.Libraries
public static void CopyLibraryStaticInterfaceMethod () { }
[Kept]
+ [KeptOverride (typeof (ICopyLibraryStaticInterface))]
static void ICopyLibraryStaticInterface.CopyLibraryExplicitImplementationStaticInterfaceMethod () { }
}