blob: e27049e3621c1a401bc3d6eed13d1ab7e00a2176 (
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
|
using Mono.Linker.Tests.Cases.Expectations.Assertions;
namespace Mono.Linker.Tests.Cases.Inheritance.AbstractClasses {
public class UsedOverrideOfVirtualMethodIsKept {
public static void Main ()
{
var tmp = new B ();
tmp.Call ();
}
[KeptMember (".ctor()")]
abstract class Base {
[Kept]
public virtual void Call ()
{
}
}
[Kept]
[KeptMember (".ctor()")]
[KeptBaseType (typeof (Base))]
class B : Base {
[Kept]
public override void Call ()
{
}
}
}
}
|