diff options
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/Basic/UsedInterfaceIsKept.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/Basic/UsedInterfaceIsKept.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Basic/UsedInterfaceIsKept.cs b/test/Mono.Linker.Tests.Cases/Basic/UsedInterfaceIsKept.cs new file mode 100644 index 000000000..e399d2c9b --- /dev/null +++ b/test/Mono.Linker.Tests.Cases/Basic/UsedInterfaceIsKept.cs @@ -0,0 +1,25 @@ +using Mono.Linker.Tests.Cases.Expectations.Assertions; + +namespace Mono.Linker.Tests.Cases.Basic +{ + class UsedInterfaceIsKept + { + public static void Main () + { + A a = new A (); + var t = typeof (I).ToString(); + } + + [Kept] + [KeptInterface (typeof (I))] + [KeptMember (".ctor()")] + class A : I + { + } + + [Kept] + interface I + { + } + } +} |