Skip to content

Commit

Permalink
Bring over the core link test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvoorhe authored and marek-safar committed Apr 30, 2017
1 parent 0e8fcf1 commit fd736b4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using Mono.Linker.Tests.Cases.Expectations.Assertions;
using Mono.Linker.Tests.Cases.Expectations.Metadata;

namespace Mono.Linker.Tests.Cases.CoreLink
{
[CoreLink("link")]

[KeptAssembly("mscorlib.dll")]
// We can't check everything that should be removed, but we should be able to check a few niche things that
// we known should be removed which will at least verify that the core library was processed
// TODO by Mike : List a few types
class LinkingOfCoreLibrariesRemovesUnusedTypes
{
public static void Main() { }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<Compile Include="Basic\UnusedPropertyGetsRemoved.cs" />
<Compile Include="Basic\UnusedPropertySetterRemoved.cs" />
<Compile Include="Basic\UsedPropertyIsKept.cs" />
<Compile Include="CoreLink\LinkingOfCoreLibrariesRemovesUnusedTypes.cs" />
<Compile Include="Future\DeadCodeElimination1.cs" />
<Compile Include="Future\FieldThatOnlyGetsSetIsRemoved.cs" />
<Compile Include="Generics\DerivedClassWithMethodOfSameNameAsBaseButDifferentNumberOfGenericParametersUnusedBaseWillGetStripped.cs" />
Expand Down

0 comments on commit fd736b4

Please sign in to comment.