Welcome to mirror list, hosted at ThFree Co, Russian Federation.

AttributeOnParameterInUsedMethodIsKept.cs « Attributes « Mono.Linker.Tests.Cases « test - github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2874a11398003a7dee5a5cb4074e21d8553fa935 (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
using System;
using Mono.Linker.Tests.Cases.Expectations.Assertions;

namespace Mono.Linker.Tests.Cases.Attributes
{
	class AttributeOnParameterInUsedMethodIsKept
	{
		static void Main ()
		{
			Method ("Bar");
		}

		[Kept]
		static void Method ([Foo] [KeptAttributeAttribute (typeof (FooAttribute))] string arg)
		{
		}

		[Kept]
		[KeptMember (".ctor()")]
		[KeptBaseType (typeof (Attribute))]
		class FooAttribute : Attribute
		{
		}
	}
}