diff options
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/LinkXml/CanPreserveExcludedFeatureCom.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/LinkXml/CanPreserveExcludedFeatureCom.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/LinkXml/CanPreserveExcludedFeatureCom.cs b/test/Mono.Linker.Tests.Cases/LinkXml/CanPreserveExcludedFeatureCom.cs new file mode 100644 index 000000000..0016d7272 --- /dev/null +++ b/test/Mono.Linker.Tests.Cases/LinkXml/CanPreserveExcludedFeatureCom.cs @@ -0,0 +1,24 @@ +using System; +using System.Runtime.InteropServices; +using Mono.Linker.Tests.Cases.Expectations.Assertions; +using Mono.Linker.Tests.Cases.Expectations.Metadata; + +namespace Mono.Linker.Tests.Cases.LinkXml { + [SetupLinkerArgument ("--exclude-feature", "com")] + public class CanPreserveExcludedFeatureCom { + public static void Main() + { + var a = new A (); + } + } + + [Kept] + [KeptMember (".ctor()")] + [KeptAttributeAttribute (typeof(GuidAttribute))] + [ComImport] + [Guid ("D7BB1889-3AB7-4681-A115-60CA9158FECA")] + class A + { + private int field; + } +}
\ No newline at end of file |