X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Ftests%2Fdtest-app.cs;h=fe6e4529495f9faea9b3dfa48bd0afcd64ee851b;hb=513a4ef69337b7dd08cd4cb3442f6eb5ecf2cba4;hp=1787a44a9a3936e7a699fec35e32a0c98437c9b1;hpb=5e5e025d888d9c9f90adb2a62a9d6e077f3e26f9;p=mono.git diff --git a/mono/tests/dtest-app.cs b/mono/tests/dtest-app.cs index 1787a44a9a3..fe6e4529495 100644 --- a/mono/tests/dtest-app.cs +++ b/mono/tests/dtest-app.cs @@ -90,6 +90,13 @@ public class GClass { public struct GStruct { public T i; + + public int j; + + [MethodImplAttribute (MethodImplOptions.NoInlining)] + public int invoke_return_int () { + return j; + } } public class Tests : TestsBase @@ -477,11 +484,11 @@ public class Tests : TestsBase [MethodImplAttribute (MethodImplOptions.NoInlining)] public static void invoke () { - new Tests ().invoke1 (new Tests2 (), new AStruct () { i = 42, j = (IntPtr)43 }); + new Tests ().invoke1 (new Tests2 (), new AStruct () { i = 42, j = (IntPtr)43 }, new GStruct { j = 42 }); } [MethodImplAttribute (MethodImplOptions.NoInlining)] - public void invoke1 (Tests2 t, AStruct s) { + public void invoke1 (Tests2 t, AStruct s, GStruct g) { invoke2 (); }