Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/Symbols/ReferenceWithPortablePdbDeleteAction.cs')
-rw-r--r--test/Mono.Linker.Tests.Cases/Symbols/ReferenceWithPortablePdbDeleteAction.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Symbols/ReferenceWithPortablePdbDeleteAction.cs b/test/Mono.Linker.Tests.Cases/Symbols/ReferenceWithPortablePdbDeleteAction.cs
new file mode 100644
index 000000000..f9382472f
--- /dev/null
+++ b/test/Mono.Linker.Tests.Cases/Symbols/ReferenceWithPortablePdbDeleteAction.cs
@@ -0,0 +1,24 @@
+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 {
+ [SetupCompileBefore ("LibraryWithPortablePdbSymbols.dll", new[] { "Dependencies/LibraryWithPortablePdbSymbols.cs" }, additionalArguments: "/debug:portable", compilerToUse: "csc")]
+ [SetupLinkerLinkSymbols ("false")]
+
+ [RemovedAssembly ("LibraryWithPortablePdbSymbols.dll")]
+ [RemovedSymbols ("LibraryWithPortablePdbSymbols.dll")]
+ public class ReferenceWithPortablePdbDeleteAction {
+ static void Main ()
+ {
+ }
+
+ /// <summary>
+ /// By not using this method we will cause the linker to delete the reference
+ /// </summary>
+ static void UnusedCodePath ()
+ {
+ LibraryWithPortablePdbSymbols.SomeMethod ();
+ }
+ }
+} \ No newline at end of file