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

DefaultConstructorOfParameterIsRemoved.cs « Com « PInvoke « Interop « Mono.Linker.Tests.Cases « Tests « linker - github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a22fb03e109a4407586f04ceb569b877eecca457 (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.CompilerServices;
using System.Runtime.InteropServices;
using Mono.Linker.Tests.Cases.Expectations.Assertions;

namespace Mono.Linker.Tests.Cases.Interop.PInvoke.Com {
	class DefaultConstructorOfParameterIsRemoved {
		public static void Main ()
		{
			SomeMethod (null);
		}

		[Kept]
		[ComImport]
		[Guid ("D7BB1889-3AB7-4681-A115-60CA9158FECA")]
		class A {
		}

		[Kept]
		[MethodImpl (MethodImplOptions.InternalCall)]
		static extern void SomeMethod (A val);
	}
}