Add a test.
[mono.git] / mono / tests / dtest-app.cs
index 1787a44a9a3936e7a699fec35e32a0c98437c9b1..fe6e4529495f9faea9b3dfa48bd0afcd64ee851b 100644 (file)
@@ -90,6 +90,13 @@ public class GClass<T> {
 
 public struct GStruct<T> {
        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<int> { j = 42 });
        }
 
        [MethodImplAttribute (MethodImplOptions.NoInlining)]
-       public void invoke1 (Tests2 t, AStruct s) {
+       public void invoke1 (Tests2 t, AStruct s, GStruct<int> g) {
                invoke2 ();
        }