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:
authorMarek Safar <marek.safar@gmail.com>2019-07-26 13:41:23 +0300
committerMarek Safar <marek.safar@gmail.com>2019-07-31 13:09:24 +0300
commitca899d1ce056bbcc48d2c2715c3ec9d0ff8e7ddc (patch)
tree22c440146da3ec6ecd04a326394825fd87d6341a /test/Mono.Linker.Tests.Cases/Reflection/ConstructorUsedViaReflection.cs
parent38d361224d6453c1c687dbab324a208dc6ff20dd (diff)
Refactor reflection marking logic to be more precise
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/Reflection/ConstructorUsedViaReflection.cs')
-rw-r--r--test/Mono.Linker.Tests.Cases/Reflection/ConstructorUsedViaReflection.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Reflection/ConstructorUsedViaReflection.cs b/test/Mono.Linker.Tests.Cases/Reflection/ConstructorUsedViaReflection.cs
index 16851b0cf..5588f4196 100644
--- a/test/Mono.Linker.Tests.Cases/Reflection/ConstructorUsedViaReflection.cs
+++ b/test/Mono.Linker.Tests.Cases/Reflection/ConstructorUsedViaReflection.cs
@@ -7,11 +7,17 @@ namespace Mono.Linker.Tests.Cases.Reflection
public class ConstructorUsedViaReflection {
public static void Main ()
{
- var constructor = typeof (OnlyUsedViaReflection).GetConstructor (BindingFlags.Public, null, new Type[]{}, new ParameterModifier[]{});
+ var constructor = typeof (OnlyUsedViaReflection).GetConstructor (BindingFlags.Public, GetNullValue ("some argument", 2, 3), new Type[]{}, new ParameterModifier[]{});
constructor.Invoke (null, new object[] { });
}
[Kept]
+ static Binder GetNullValue (string str, int i, long g)
+ {
+ return null;
+ }
+
+ [Kept]
private class OnlyUsedViaReflection {
[Kept]
public OnlyUsedViaReflection ()