blob: abe14304206c8479627f5efad9c9d95ba7006f13 (
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
|
using System;
using Mono.Linker.Tests.Cases.Expectations.Assertions;
using Mono.Linker.Tests.Cases.Expectations.Metadata;
namespace Mono.Linker.Tests.Cases.TestFramework {
/// <summary>
/// The purpose of this test is to verify that the testing framework's define attribute is working correctly
/// </summary>
[Define("SOME_DEFINE")]
public class VerifyDefineAttributeBehavior {
static void Main ()
{
#if SOME_DEFINE
MethodThatIsUsedIfDefineIsWorkingProperly ();
#endif
}
[Kept]
static void MethodThatIsUsedIfDefineIsWorkingProperly ()
{
Console.WriteLine ("Foo");
}
}
}
|