diff options
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/Attributes/AttributeOnPreservedTypeWithTypeUsedInConstructorIsKept.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/Attributes/AttributeOnPreservedTypeWithTypeUsedInConstructorIsKept.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Attributes/AttributeOnPreservedTypeWithTypeUsedInConstructorIsKept.cs b/test/Mono.Linker.Tests.Cases/Attributes/AttributeOnPreservedTypeWithTypeUsedInConstructorIsKept.cs new file mode 100644 index 000000000..aa6600837 --- /dev/null +++ b/test/Mono.Linker.Tests.Cases/Attributes/AttributeOnPreservedTypeWithTypeUsedInConstructorIsKept.cs @@ -0,0 +1,27 @@ +using System; +using Mono.Linker.Tests.Cases.Expectations.Assertions; + +namespace Mono.Linker.Tests.Cases.Attributes { + [Foo (typeof (A))] + [KeptAttributeAttribute (typeof (FooAttribute))] + class AttributeOnPreservedTypeWithTypeUsedInConstructorIsKept { + public static void Main () + { + } + + [KeptBaseType (typeof (System.Attribute))] + class FooAttribute : Attribute { + [Kept] + public FooAttribute (Type val) + { + } + } + + [Kept] + class A { + public A () + { + } + } + } +}
\ No newline at end of file |