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/Reflection/TypeUsedViaReflectionLdstrIncomplete.cs')
-rw-r--r--test/Mono.Linker.Tests.Cases/Reflection/TypeUsedViaReflectionLdstrIncomplete.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Reflection/TypeUsedViaReflectionLdstrIncomplete.cs b/test/Mono.Linker.Tests.Cases/Reflection/TypeUsedViaReflectionLdstrIncomplete.cs
new file mode 100644
index 000000000..56c1077bf
--- /dev/null
+++ b/test/Mono.Linker.Tests.Cases/Reflection/TypeUsedViaReflectionLdstrIncomplete.cs
@@ -0,0 +1,24 @@
+using System;
+using Mono.Linker.Tests.Cases.Expectations.Assertions;
+
+namespace Mono.Linker.Tests.Cases.Reflection {
+ /// <summary>
+ /// This case we can't detect and need to gracefully do nothing
+ /// </summary>
+ public class TypeUsedViaReflectionLdstrIncomplete {
+ public static void Main ()
+ {
+ var typePart = GetTypePart ();
+ var assemblyPart = ",test";
+ var typeKept = Type.GetType (string.Concat (typePart, assemblyPart), false);
+ }
+
+ public class Full { }
+
+ [Kept]
+ static string GetTypePart ()
+ {
+ return "Mono.Linker.Tests.Cases.Reflection.TypeUsedViaReflectionLdstrIncomplete+Full";
+ }
+ }
+} \ No newline at end of file