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

ComAttributesAreRemovedWhenFeatureExcluded.cs « OnlyKeepUsed « Attributes « Mono.Linker.Tests.Cases « test - github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ca83503d4e6f84d1b3823863fec5390ab899f028 (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
27
28
using System.Runtime.InteropServices;
using Mono.Linker.Tests.Cases.Expectations.Assertions;
using Mono.Linker.Tests.Cases.Expectations.Metadata;

namespace Mono.Linker.Tests.Cases.Attributes.OnlyKeepUsed {
	[SetupLinkerArgument ("--used-attrs-only", "true")]
	[SetupLinkerArgument ("--exclude-feature", "com")]
	public class ComAttributesAreRemovedWhenFeatureExcluded {
		public static void Main ()
		{
			var tmp = ReturnValueUsedToMarkType ();
		}
		
		[Kept]
		static A ReturnValueUsedToMarkType ()
		{
			return null;
		}
		
		[Kept]
		[RemovedPseudoAttribute (0x00001000u)]
		[ComImport]
		[Guid ("D7BB1889-3AB7-4681-A115-60CA9158FECA")]
		[InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
		interface A {
		}
	}
}