diff options
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/Statics/MixedStaticFieldInitializerAndCtor.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/Statics/MixedStaticFieldInitializerAndCtor.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Statics/MixedStaticFieldInitializerAndCtor.cs b/test/Mono.Linker.Tests.Cases/Statics/MixedStaticFieldInitializerAndCtor.cs new file mode 100644 index 000000000..da0a68714 --- /dev/null +++ b/test/Mono.Linker.Tests.Cases/Statics/MixedStaticFieldInitializerAndCtor.cs @@ -0,0 +1,28 @@ +using Mono.Linker.Tests.Cases.Expectations.Assertions; + +namespace Mono.Linker.Tests.Cases.Statics +{ + public class MixedStaticFieldInitializerAndCtor + { + public static void Main () + { + C.Foo (); + } + + static class C + { + [Kept] + public static object o = new object (); + + [Kept] + static C () + { + } + + [Kept] + public static void Foo () + { + } + } + } +} |