blob: 841b11442bb4429d41594f575609f9c91eaefbc8 (
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
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Mono.Linker.Tests.Cases.Expectations.Assertions;
using Mono.Linker.Tests.Cases.Expectations.Metadata;
using Mono.Linker.Tests.Cases.Warnings.Dependencies;
namespace Mono.Linker.Tests.Cases.Warnings.WarningSuppression
{
[TestCaseRequirements (TestRunCharacteristics.TargetingNetCore, "This test is specific to .NET Core")]
// For netcoreapp we don't have to specify the assembly for the attribute, since the attribute comes from corelib
// and will be found always.
[SetupLinkAttributesFile ("SuppressWarningsUsingTargetViaXml.netcore.xml")]
[SetupCompileBefore ("library.dll", new[] { typeof (TriggerWarnings_Lib) })]
[KeptAssembly ("library.dll")]
[SetupLinkerAction ("link", "library.dll")]
[LogDoesNotContain ("TriggerUnrecognizedPattern()")]
public class SuppressWarningsUsingTargetViaXmlNetCore
{
public static void Main ()
{
TriggerWarnings_Lib.Main ();
}
}
}
|