From 89da80f5bf1f16793f1cb29874631aac065e124b Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Mon, 18 Feb 2002 22:53:53 +0000 Subject: [PATCH] added pinvoked method with 10 int arguments svn path=/trunk/mono/; revision=2484 --- mono/tests/pinvoke.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mono/tests/pinvoke.cs b/mono/tests/pinvoke.cs index dd526727318..2e65b64244d 100755 --- a/mono/tests/pinvoke.cs +++ b/mono/tests/pinvoke.cs @@ -6,6 +6,10 @@ public class Test { [DllImport("cygwin1.dll", EntryPoint="puts", CharSet=CharSet.Ansi)] public static extern int puts (string name); + [DllImport (".libs/libtest.so", EntryPoint="mono_test_many_int_arguments")] + public static extern int mono_test_many_int_arguments (int a, int b, int c, int d, int e, + int f, int g, int h, int i, int j); + public static int Main () { puts ("A simple Test for PInvoke"); @@ -13,9 +17,9 @@ public class Test { return 1; if (Math.Acos (1) != 0) return 1; + if (mono_test_many_int_arguments (1, 1, 1, 1, 1, 1, 1, 1, 1, 1) != 10) + return 1; return 0; } } - - -- 2.25.1