blob: 3d53f356c483579117d650ef24ef9fc353560ec2 (
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
|
using System;
using Mono.Linker.Tests.Cases.Expectations.Assertions;
using Mono.Linker.Tests.Cases.Expectations.Metadata;
namespace Mono.Linker.Tests.Cases.TypeForwarding
{
[SkipUnresolved (true)]
[Define ("IL_ASSEMBLY_AVAILABLE")]
[SetupCompileBefore ("TypeForwarderMissingReference.dll", new[] { "Dependencies/TypeForwarderMissingReference.il" })]
[SetupLinkerAction ("link", "TypeForwarderMissingReference.dll")]
[KeptMemberInAssembly ("TypeForwarderMissingReference.dll", "DummyClass", ".ctor()")]
[RemovedForwarder ("TypeForwarderMissingReference.dll", "C")]
[RemovedForwarder ("TypeForwarderMissingReference.dll", "G<>")]
public class MissingTargetReference
{
public static void Main ()
{
#if IL_ASSEMBLY_AVAILABLE
Console.WriteLine (new DummyClass ());
#endif
}
}
}
|