diff options
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/Reflection/ConstructorUsedViaReflection.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/Reflection/ConstructorUsedViaReflection.cs | 8 |
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 () |