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/DefaultLibraryLinkBehavior.cs')
-rw-r--r--test/Mono.Linker.Tests.Cases/Libraries/DefaultLibraryLinkBehavior.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Libraries/DefaultLibraryLinkBehavior.cs b/test/Mono.Linker.Tests.Cases/Libraries/DefaultLibraryLinkBehavior.cs
new file mode 100644
index 000000000..5c1e9aba4
--- /dev/null
+++ b/test/Mono.Linker.Tests.Cases/Libraries/DefaultLibraryLinkBehavior.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 {
+ [SetupCompileAsLibrary]
+ [Kept]
+ [KeptMember (".ctor()")]
+ public class DefaultLibraryLinkBehavior {
+ // 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 ()
+ {
+ }
+
+ [Kept]
+ private void UnusedPrivateMethod ()
+ {
+ }
+ }
+} \ No newline at end of file