blob: 3f84fddbb8693e2395a98341f4e10cf470ddc44e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
using System;
using Mono.Linker.Tests.Cases.Attributes.OnlyKeepUsed;
using Mono.Linker.Tests.Cases.Expectations.Metadata;
using Mono.Linker.Tests.Cases.Expectations.Assertions;
[assembly: UsedAttributeTypeOnAssemblyIsKept.Foo]
[assembly: KeptAttributeAttribute (typeof (UsedAttributeTypeOnAssemblyIsKept.FooAttribute))]
namespace Mono.Linker.Tests.Cases.Attributes.OnlyKeepUsed {
[SetupLinkerArgument("--used-attrs-only", "true")]
class UsedAttributeTypeOnAssemblyIsKept {
static void Main ()
{
var str = typeof (FooAttribute).ToString ();
}
[Kept]
[KeptMember (".ctor()")]
[KeptBaseType (typeof (Attribute))]
public class FooAttribute : Attribute {
}
}
}
|