diff options
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/Statics/UnusedStaticConstructorGetsRemoved.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/Statics/UnusedStaticConstructorGetsRemoved.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Statics/UnusedStaticConstructorGetsRemoved.cs b/test/Mono.Linker.Tests.Cases/Statics/UnusedStaticConstructorGetsRemoved.cs new file mode 100644 index 000000000..83c1d1ea8 --- /dev/null +++ b/test/Mono.Linker.Tests.Cases/Statics/UnusedStaticConstructorGetsRemoved.cs @@ -0,0 +1,20 @@ +using Mono.Linker.Tests.Cases.Expectations.Assertions; + +namespace Mono.Linker.Tests.Cases.Statics { + class UnusedStaticConstructorGetsRemoved { + public static void Main () + { + } + + static void Dead () + { + new B (); + } + + class B { + static B () + { + } + } + } +}
\ No newline at end of file |