diff options
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/Attributes/OnlyKeepUsed/UnusedAttributeTypeOnModuleIsRemoved.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/Attributes/OnlyKeepUsed/UnusedAttributeTypeOnModuleIsRemoved.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Attributes/OnlyKeepUsed/UnusedAttributeTypeOnModuleIsRemoved.cs b/test/Mono.Linker.Tests.Cases/Attributes/OnlyKeepUsed/UnusedAttributeTypeOnModuleIsRemoved.cs new file mode 100644 index 000000000..90619679c --- /dev/null +++ b/test/Mono.Linker.Tests.Cases/Attributes/OnlyKeepUsed/UnusedAttributeTypeOnModuleIsRemoved.cs @@ -0,0 +1,17 @@ +using System; +using Mono.Linker.Tests.Cases.Attributes.OnlyKeepUsed; +using Mono.Linker.Tests.Cases.Expectations.Metadata; + +[module: UnusedAttributeTypeOnModuleIsRemoved.Foo] + +namespace Mono.Linker.Tests.Cases.Attributes.OnlyKeepUsed { + [SetupLinkerArgument ("--used-attrs-only", "true")] + class UnusedAttributeTypeOnModuleIsRemoved { + static void Main () + { + } + + public class FooAttribute : Attribute { + } + } +} |