Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnValueType/UnusedExplicitInterfaceIsRemoved.cs')
-rw-r--r--test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnValueType/UnusedExplicitInterfaceIsRemoved.cs35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnValueType/UnusedExplicitInterfaceIsRemoved.cs b/test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnValueType/UnusedExplicitInterfaceIsRemoved.cs
new file mode 100644
index 000000000..f731e3bdc
--- /dev/null
+++ b/test/Mono.Linker.Tests.Cases/Inheritance.Interfaces/OnValueType/UnusedExplicitInterfaceIsRemoved.cs
@@ -0,0 +1,35 @@
+using Mono.Linker.Tests.Cases.Expectations.Assertions;
+
+namespace Mono.Linker.Tests.Cases.Inheritance.Interfaces.OnValueType {
+ public class UnusedExplicitInterfaceIsRemoved {
+ public static void Main ()
+ {
+ IFoo i = new A ();
+ i.Foo ();
+ }
+
+ [Kept]
+ interface IFoo {
+ [Kept]
+ void Foo ();
+ }
+
+ interface IBar {
+ void Bar ();
+ }
+
+ [Kept]
+ [KeptMember (".ctor()")]
+ [KeptInterface (typeof (IFoo))]
+ struct A : IBar, IFoo {
+ [Kept]
+ void IFoo.Foo ()
+ {
+ }
+
+ void IBar.Bar ()
+ {
+ }
+ }
+ }
+} \ No newline at end of file