2010-04-07 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-704.cs
blobe6e71099ac0b178adde0315a8234f3b50a6f669c
1 // Compiler options: -unsafe
3 using System;
4 using System.Runtime.InteropServices;
6 namespace NObjective
8 public class Program
10 static volatile bool ProcessExiting = false;
12 [DllImport ("libc.dylib")]
13 public extern static void printf (string format, __arglist);
15 private static void ArglistMethod (__arglist)
17 var iter = new ArgIterator (__arglist);
19 for (int n = iter.GetRemainingCount (); n > 0; n--)
20 Console.WriteLine (TypedReference.ToObject (iter.GetNextArg ()));
23 static unsafe void Main (string[] args)
25 ArglistMethod (__arglist (1, 2, 3));