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