blob: d6b4969fe26fa70e0d9cc36da23ba63ee606c414 (
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
|
using Mono.Linker.Tests.Cases.Expectations.Assertions;
namespace Mono.Linker.Tests.Cases.Inheritance.VirtualMethods {
class VirtualMethodGetsStrippedIfImplementingMethodGetsInvokedDirectly {
public static void Main ()
{
new A ().Foo ();
}
[KeptMember (".ctor()")]
class B {
[Kept] // TODO: Would be nice to be removed
public virtual void Foo ()
{
}
}
[KeptMember (".ctor()")]
[KeptBaseType (typeof (B))]
class A : B {
[Kept]
public override void Foo ()
{
}
}
}
}
|