diff options
Diffstat (limited to 'linker/Tests/Mono.Linker.Tests.Cases/TypeForwarding/MissingTargetReference.cs')
-rw-r--r-- | linker/Tests/Mono.Linker.Tests.Cases/TypeForwarding/MissingTargetReference.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/linker/Tests/Mono.Linker.Tests.Cases/TypeForwarding/MissingTargetReference.cs b/linker/Tests/Mono.Linker.Tests.Cases/TypeForwarding/MissingTargetReference.cs new file mode 100644 index 000000000..07f43ef32 --- /dev/null +++ b/linker/Tests/Mono.Linker.Tests.Cases/TypeForwarding/MissingTargetReference.cs @@ -0,0 +1,23 @@ +using System; +using Mono.Linker.Tests.Cases.Expectations.Assertions; +using Mono.Linker.Tests.Cases.Expectations.Metadata; + +namespace Mono.Linker.Tests.Cases.TypeForwarding +{ + [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 + } + } +} |