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

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

namespace Mono.Linker.Tests.Cases.UnreachableBody
{
	[SetupLinkerArgument ("--enable-opt", "unreachablebodies")]
	public class SimpleGetter
	{
		public static void Main ()
		{
			UsedToMarkMethod (null);
		}

		[Kept]
		static void UsedToMarkMethod (Foo f)
		{
			var tmp = f.Property;
		}

		[Kept]
		class Foo
		{
			[Kept]
			public string Property { [Kept] [ExpectBodyModified] get; set; }
		}
	}
}