diff options
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/Symbols/ReferenceWithPdb.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/Symbols/ReferenceWithPdb.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Symbols/ReferenceWithPdb.cs b/test/Mono.Linker.Tests.Cases/Symbols/ReferenceWithPdb.cs new file mode 100644 index 000000000..fd51cdb07 --- /dev/null +++ b/test/Mono.Linker.Tests.Cases/Symbols/ReferenceWithPdb.cs @@ -0,0 +1,31 @@ +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/LibraryWithPdb/LibraryWithPdb.dll")] + [ReferenceDependency ("Dependencies/LibraryWithPdb/LibraryWithPdb.pdb")] + [SetupLinkerLinkSymbols ("false")] + + [RemovedSymbols ("LibraryWithPdb.dll")] + + [KeptMemberInAssembly ("LibraryWithPdb.dll", typeof (LibraryWithPdb), "SomeMethod()")] + [RemovedMemberInAssembly ("LibraryWithPdb.dll",typeof (LibraryWithPdb), "NotUsed()")] + public class ReferenceWithPdb { + static void Main () + { + // Use some stuff so that we can verify that the linker output correct results + SomeMethod (); + LibraryWithPdb.SomeMethod (); + } + + [Kept] + static void SomeMethod () + { + } + + static void NotUsed () + { + } + } +}
\ No newline at end of file |