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

UnusedTypeHasExplicitInterfacePropertyPreservedViaXml.cs « NoKeptCtor « OnReferenceType « Inheritance.Interfaces « Mono.Linker.Tests.Cases « test - github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 044bcb27b6233b5fdfef4c8468eaf778b10a26b8 (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
29
30
31
32
33
34
35
36
using Mono.Linker.Tests.Cases.Expectations.Assertions;
using Mono.Linker.Tests.Cases.Expectations.Metadata;

namespace Mono.Linker.Tests.Cases.Inheritance.Interfaces.OnReferenceType.NoKeptCtor
{
	[SetupLinkerArgument ("--enable-opt", "unreachablebodies")]
	[SetupLinkerDescriptorFile ("UnusedTypeHasExplicitInterfacePropertyPreservedViaXml.xml")]
	public class UnusedTypeHasExplicitInterfacePropertyPreservedViaXml
	{
		public static void Main ()
		{
		}

		[Kept]
		interface IFoo
		{
			[Kept]
			int Foo { [Kept] get; [Kept] set; }
		}

		interface IBar
		{
			int Bar { get; set; }
		}

		[Kept]
		[KeptInterface (typeof (IFoo))]
		class A : IBar, IFoo
		{
			[Kept]
			int IFoo.Foo { [Kept][ExpectBodyModified] get; [Kept][ExpectBodyModified] set; }

			int IBar.Bar { get; set; }
		}
	}
}