From a0149991af773461ecfc0fd6e784a45c8a71fea1 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Sat, 19 Mar 2016 23:19:00 +0100 Subject: [PATCH] [gsharedvt] Add a test for #39528. --- mono/mini/gshared.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/mono/mini/gshared.cs b/mono/mini/gshared.cs index a8bfee03414..88f8c2ebb22 100644 --- a/mono/mini/gshared.cs +++ b/mono/mini/gshared.cs @@ -1716,6 +1716,23 @@ public class Tests return 0; } + interface ISmallArg { + T foo (string s1, string s2, string s3, string s4, string s5, string s6, string s7, string s8, + string s9, string s10, string s11, string s12, string s13, T t); + } + + class SmallArgClass : ISmallArg { + public T foo (string s1, string s2, string s3, string s4, string s5, string s6, string s7, string s8, + string s9, string s10, string s11, string s12, string s13, T t) { + return t; + } + } + + public static int test_1_small_gsharedvt_stack_arg_ios () { + ISmallArg o = new SmallArgClass (); + return o.foo ("", "", "", "", "", "", "", "", "", "", "", "", "", 1); + } + // Passing vtype normal arguments on the stack public static int test_0_arm64_vtype_stack_args () { IFoo3 o = (IFoo3)Activator.CreateInstance (typeof (Foo3<>).MakeGenericType (new Type [] { typeof (EmptyStruct) })); -- 2.25.1