diff options
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/References/Dependencies/AssemblyOnlyUsedByUsing_Copied.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/References/Dependencies/AssemblyOnlyUsedByUsing_Copied.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/References/Dependencies/AssemblyOnlyUsedByUsing_Copied.cs b/test/Mono.Linker.Tests.Cases/References/Dependencies/AssemblyOnlyUsedByUsing_Copied.cs new file mode 100644 index 000000000..31552b32c --- /dev/null +++ b/test/Mono.Linker.Tests.Cases/References/Dependencies/AssemblyOnlyUsedByUsing_Copied.cs @@ -0,0 +1,16 @@ + +// This is what triggers the behavior difference between Roslyn and mcs. Roslyn will keep the reference +// to this assembly because of this whereas mcs will not +using ImportantForBug = Mono.Linker.Tests.Cases.References.Dependencies.AssemblyOnlyUsedByUsing_Lib; + +namespace Mono.Linker.Tests.Cases.References.Dependencies { + public class AssemblyOnlyUsedByUsing_Copied { + public static void UsedToKeepReference () + { + } + + private static void Unused () + { + } + } +}
\ No newline at end of file |