diff options
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/Libraries/CanLinkPublicApisOfLibrary.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/Libraries/CanLinkPublicApisOfLibrary.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Libraries/CanLinkPublicApisOfLibrary.cs b/test/Mono.Linker.Tests.Cases/Libraries/CanLinkPublicApisOfLibrary.cs new file mode 100644 index 000000000..1bcd525dd --- /dev/null +++ b/test/Mono.Linker.Tests.Cases/Libraries/CanLinkPublicApisOfLibrary.cs @@ -0,0 +1,26 @@ +using Mono.Linker.Tests.Cases.Expectations.Assertions; +using Mono.Linker.Tests.Cases.Expectations.Metadata; + +namespace Mono.Linker.Tests.Cases.Libraries { + [SetupLinkerLinkPublicAndFamily] + [SetupCompileAsLibrary] + [Kept] + [KeptMember (".ctor()")] + public class CanLinkPublicApisOfLibrary { + // Kept because by default libraries their action set to copy + [Kept] + public static void Main () + { + // Main is needed for the test collector to find and treat as a test + } + + [Kept] + public void UnusedPublicMethod () + { + } + + private void UnusedPrivateMethod () + { + } + } +}
\ No newline at end of file |