blob: f393896a297e68fb089f5a2feae099f7f9420407 (
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
|
using System;
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");
}
}
}
|