diff options
Diffstat (limited to 'linker/Tests/Mono.Linker.Tests.Cases/LinkXml/UnusedPropertyPreservedByLinkXmlIsKept.cs')
-rw-r--r-- | linker/Tests/Mono.Linker.Tests.Cases/LinkXml/UnusedPropertyPreservedByLinkXmlIsKept.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/linker/Tests/Mono.Linker.Tests.Cases/LinkXml/UnusedPropertyPreservedByLinkXmlIsKept.cs b/linker/Tests/Mono.Linker.Tests.Cases/LinkXml/UnusedPropertyPreservedByLinkXmlIsKept.cs new file mode 100644 index 000000000..65084580f --- /dev/null +++ b/linker/Tests/Mono.Linker.Tests.Cases/LinkXml/UnusedPropertyPreservedByLinkXmlIsKept.cs @@ -0,0 +1,26 @@ +using Mono.Linker.Tests.Cases.Expectations.Assertions; + +namespace Mono.Linker.Tests.Cases.LinkXml { + class UnusedPropertyPreservedByLinkXmlIsKept { + public static void Main () + { + } + + [Kept] + class Unused { + [Kept] + [KeptBackingField] + public int PreservedProperty1 { [Kept] get; [Kept] set; } + + [Kept] + [KeptBackingField] + public int PreservedProperty2 { [Kept] get; set; } + + [Kept] + [KeptBackingField] + public int PreservedProperty3 { get; [Kept] set; } + + public int NotPreservedProperty { get; set; } + } + } +}
\ No newline at end of file |