blob: fd51cdb079f6e727b71a16906aa2fc72c2ad20b9 (
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
25
26
27
28
29
30
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 ()
{
}
}
}
|