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/LinkXml/AssemblyWithPreserveAll.cs')
-rw-r--r--test/Mono.Linker.Tests.Cases/LinkXml/AssemblyWithPreserveAll.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/LinkXml/AssemblyWithPreserveAll.cs b/test/Mono.Linker.Tests.Cases/LinkXml/AssemblyWithPreserveAll.cs
new file mode 100644
index 000000000..f02913bc5
--- /dev/null
+++ b/test/Mono.Linker.Tests.Cases/LinkXml/AssemblyWithPreserveAll.cs
@@ -0,0 +1,31 @@
+using Mono.Linker.Tests.Cases.Expectations.Assertions;
+
+namespace Mono.Linker.Tests.Cases.LinkXml {
+ [KeptMember (".ctor()")]
+ public class AssemblyWithPreserveAll {
+ public static void Main ()
+ {
+ }
+
+ [Kept]
+ [KeptMember (".ctor()")]
+ class UnusedType {
+ [Kept]
+ public int UnusedField;
+
+ [Kept]
+ [KeptBackingField]
+ public int UnusedProperty { [Kept] get; [Kept] set; }
+
+ [Kept]
+ public void UnusedMethod ()
+ {
+ }
+
+ [Kept]
+ [KeptMember (".ctor()")]
+ class UnusedNestedType {
+ }
+ }
+ }
+} \ No newline at end of file