blob: 19431989cbc6c1af63a8abeb467ef616cbabed7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
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
{
}
}
}
|