[x86] Only pinvoke methods are stdcall. (#3354)
[mono.git] / mono / tests / pinvoke2.cs
index 5e0f474ec40ac451ce6034bf5af400896980c0ca..9b80f969d65eeebb526c3f90e46a2a32f90d6f95 100644 (file)
@@ -1433,6 +1433,13 @@ public class Tests {
                return mono_test_stdcall_name_mangling (0, 1, 2) == 3 ? 0 : 1;
        }
 
+       /* Test multiple calls to stdcall wrapper, xamarin bug 30146 */
+       public static int test_0_stdcall_many_calls () {
+               for (int i=0; i<256; i++)
+                       mono_test_stdcall_name_mangling (0, 0, 0);
+               return 0;
+       }
+
        /* Float test */
 
        [DllImport ("libtest", EntryPoint="mono_test_marshal_pass_return_float")]