diff options
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/LinkXml/FeatureExclude/OnEvent.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/LinkXml/FeatureExclude/OnEvent.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/LinkXml/FeatureExclude/OnEvent.cs b/test/Mono.Linker.Tests.Cases/LinkXml/FeatureExclude/OnEvent.cs new file mode 100644 index 000000000..e733ab2d1 --- /dev/null +++ b/test/Mono.Linker.Tests.Cases/LinkXml/FeatureExclude/OnEvent.cs @@ -0,0 +1,17 @@ +using System; +using Mono.Linker.Tests.Cases.Expectations.Assertions; +using Mono.Linker.Tests.Cases.Expectations.Metadata; + +namespace Mono.Linker.Tests.Cases.LinkXml.FeatureExclude { + [SetupLinkerArgument ("--exclude-feature", "one")] + public class OnEvent { + public static void Main () + { + } + + public event EventHandler<EventArgs> FeatureOne; + + [Kept] + public event EventHandler<EventArgs> FeatureTwo {[Kept] add {}[Kept] remove {} } + } +} |