blob: 9d1627affe7b4576b3306d7a1b7e79e6b27d2db4 (
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
32
33
34
35
36
37
38
39
40
41
42
|
using Mono.Linker.Tests.Cases.Expectations.Assertions;
using Mono.Linker.Tests.Cases.Expectations.Metadata;
namespace Mono.Linker.Tests.Cases.CoreLink {
[SetupLinkerCoreAction ("link")]
// Need to skip due to `Runtime critical type System.Reflection.CustomAttributeData not found` failure
[SkipPeVerify (SkipPeVerifyForToolchian.Pedump)]
public class NeverInstantiatedTypeWithOverridesFromObject {
public static void Main ()
{
typeof (Foo).ToString ();
}
[Kept]
class Foo {
~Foo ()
{
// Finalize shouldn't be empty
DoCleanupStuff ();
}
void DoCleanupStuff ()
{
}
public override bool Equals (object obj)
{
return false;
}
public override string ToString ()
{
return null;
}
public override int GetHashCode ()
{
return 0;
}
}
}
}
|