blob: 88c933039bf059da092d9966551ea409bef55634 (
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
|
using System;
using System.Linq.Expressions;
using System.Reflection;
using System.Diagnostics.CodeAnalysis;
using Mono.Linker.Tests.Cases.Expectations.Assertions;
using Mono.Linker.Tests.Cases.Expectations.Metadata;
namespace Mono.Linker.Tests.Cases.Warnings
{
[SkipKeptItemsValidation]
[SetupLinkerArgument ("--verbose")]
[SetupLinkerArgument ("--warnaserror")]
[SetupLinkerArgument ("--warn", "0")]
[LogDoesNotContain ("IL2067")]
public class CanNotWarnAsErrorForDisabledVersion
{
public static void Main ()
{
GetMethod ();
}
[DynamicallyAccessedMembers (DynamicallyAccessedMemberTypes.PublicFields)]
static string type;
static void GetMethod ()
{
_ = Type.GetType (type).GetMethod ("Method");
}
}
}
|