diff options
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/Symbols/ReferenceWithMdbDeleteAction.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/Symbols/ReferenceWithMdbDeleteAction.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Symbols/ReferenceWithMdbDeleteAction.cs b/test/Mono.Linker.Tests.Cases/Symbols/ReferenceWithMdbDeleteAction.cs new file mode 100644 index 000000000..7b8ce67d7 --- /dev/null +++ b/test/Mono.Linker.Tests.Cases/Symbols/ReferenceWithMdbDeleteAction.cs @@ -0,0 +1,25 @@ +using Mono.Linker.Tests.Cases.Expectations.Assertions; +using Mono.Linker.Tests.Cases.Expectations.Metadata; +using Mono.Linker.Tests.Cases.Symbols.Dependencies; + +namespace Mono.Linker.Tests.Cases.Symbols { + [Reference ("Dependencies/LibraryWithMdb/LibraryWithMdb.dll")] + [ReferenceDependency ("Dependencies/LibraryWithMdb/LibraryWithMdb.dll.mdb")] + [SetupLinkerLinkSymbols ("false")] + + [RemovedAssembly ("LibraryWithMdb.dll")] + [RemovedSymbols ("LibraryWithMdb.dll")] + public class ReferenceWithMdbDeleteAction { + static void Main () + { + } + + /// <summary> + /// By not using this method we will cause the linker to delete the reference + /// </summary> + static void UnusedCodePath () + { + LibraryWithMdb.SomeMethod (); + } + } +}
\ No newline at end of file |