diff options
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/Basic/UnusedMethodGetsRemoved.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/Basic/UnusedMethodGetsRemoved.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Basic/UnusedMethodGetsRemoved.cs b/test/Mono.Linker.Tests.Cases/Basic/UnusedMethodGetsRemoved.cs new file mode 100644 index 000000000..eaded4de5 --- /dev/null +++ b/test/Mono.Linker.Tests.Cases/Basic/UnusedMethodGetsRemoved.cs @@ -0,0 +1,22 @@ +using Mono.Linker.Tests.Cases.Expectations.Assertions; + +namespace Mono.Linker.Tests.Cases.Basic { + class UnusedMethodGetsRemoved { + public static void Main () + { + new UnusedMethodGetsRemoved.B ().Method (); + } + + [KeptMember (".ctor()")] + class B { + public void Unused () + { + } + + [Kept] + public void Method () + { + } + } + } +}
\ No newline at end of file |