Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2009-02-18 19:17:25 +0300
committerMarek Safar <marek.safar@gmail.com>2009-02-18 19:17:25 +0300
commitddb4f0f3c9f1c4d025c9f0407c1cbf025127d2c0 (patch)
treee6916d50c5c82a3fcd22bca5ea5e66180150adc0 /mcs/tests/test-704.cs
parent55e9f7cf705c1694a6377147fe4c3bc463e3f40f (diff)
New tests
svn path=/trunk/mcs/; revision=127288
Diffstat (limited to 'mcs/tests/test-704.cs')
-rw-r--r--mcs/tests/test-704.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/mcs/tests/test-704.cs b/mcs/tests/test-704.cs
new file mode 100644
index 00000000000..e6e71099ac0
--- /dev/null
+++ b/mcs/tests/test-704.cs
@@ -0,0 +1,28 @@
+// Compiler options: -unsafe
+
+using System;
+using System.Runtime.InteropServices;
+
+namespace NObjective
+{
+ public class Program
+ {
+ static volatile bool ProcessExiting = false;
+
+ [DllImport ("libc.dylib")]
+ public extern static void printf (string format, __arglist);
+
+ private static void ArglistMethod (__arglist)
+ {
+ var iter = new ArgIterator (__arglist);
+
+ for (int n = iter.GetRemainingCount (); n > 0; n--)
+ Console.WriteLine (TypedReference.ToObject (iter.GetNextArg ()));
+ }
+
+ static unsafe void Main (string[] args)
+ {
+ ArglistMethod (__arglist (1, 2, 3));
+ }
+ }
+}