blob: 372105cd3bc7711f356a848d8f294352048cd298 (
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
|
using Mono.Linker.Tests.Cases.Expectations.Assertions;
namespace Mono.Linker.Tests.Cases.VirtualMethods {
class VirtualMethodGetsPerservedIfBaseMethodGetsInvoked {
public static void Main ()
{
new A ();
new B ().Foo ();
}
[KeptMember (".ctor()")]
class B {
[Kept]
public virtual void Foo ()
{
}
}
[KeptMember (".ctor()")]
[KeptBaseType (typeof (B))]
class A : B {
[Kept]
public override void Foo ()
{
}
}
}
}
|