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

DefaultConstructorOfReturnTypeIsNotRemoved.cs « PInvoke « Interop « Mono.Linker.Tests.Cases « test - github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d714d0d95b90cd3b8501871c80f1588790655abc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System.Runtime.InteropServices;
using Mono.Linker.Tests.Cases.Expectations.Assertions;

namespace Mono.Linker.Tests.Cases.Interop.PInvoke {
	class DefaultConstructorOfReturnTypeIsNotRemoved {
		public static void Main ()
		{
			var a = SomeMethod ();
		}

		class A {
			[Kept]
			public A ()
			{
			}
		}

		[Kept]
		[DllImport ("Unused")]
		private static extern A SomeMethod ();
	}
}