blob: 49002c28d78e4450b2e5cf239c71c820c57aac09 (
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 Mono.Linker.Tests.Cases.Expectations.Assertions;
using Mono.Linker.Tests.Cases.Expectations.Metadata;
using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;
namespace Mono.Linker.Tests.Cases.Warnings.WarningSuppression
{
#if !ILLINK
[Reference ("System.Core.dll")]
#endif
[SkipKeptItemsValidation]
[SetupLinkAttributesFile ("AddSuppressionsBeforeAttributeRemoval.xml")]
[LogDoesNotContain ("IL2067: Mono.Linker.Tests.Cases.Warnings.WarningSuppression.AddSuppressionsBeforeAttributeRemoval.Main()")]
public class AddSuppressionsBeforeAttributeRemoval
{
public static Type TriggerUnrecognizedPattern ()
{
return typeof (AddedPseudoAttributeAttribute);
}
[UnconditionalSuppressMessage ("ILLinker", "IL2067")]
public static void Main ()
{
Expression.Call (TriggerUnrecognizedPattern (), "", Type.EmptyTypes);
}
}
}
|