diff options
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/LinkXml/UnusedMethodPreservedByLinkXmlIsKept.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/LinkXml/UnusedMethodPreservedByLinkXmlIsKept.cs | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/LinkXml/UnusedMethodPreservedByLinkXmlIsKept.cs b/test/Mono.Linker.Tests.Cases/LinkXml/UnusedMethodPreservedByLinkXmlIsKept.cs new file mode 100644 index 000000000..9fe2b353b --- /dev/null +++ b/test/Mono.Linker.Tests.Cases/LinkXml/UnusedMethodPreservedByLinkXmlIsKept.cs @@ -0,0 +1,37 @@ +using System.Collections.Generic; +using Mono.Linker.Tests.Cases.Expectations.Assertions; + +namespace Mono.Linker.Tests.Cases.LinkXml { + class UnusedMethodPreservedByLinkXmlIsKept { + public static void Main () + { + } + + [Kept] + class Unused { + [Kept] + private void PreservedMethod () + { + } + + [Kept] + private void PreservedMethod2 (int arg1, string arg2) + { + } + + [Kept] + private void PreservedMethod3 () + { + } + + [Kept] + private void PreservedMethod4 (List<int> arg1) + { + } + + private void NotPreservedMethod () + { + } + } + } +}
\ No newline at end of file |