2010-04-07 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-562.cs
blob882989de14babb38b76e5bcdaadb9fe4f74f9023
1 using System;
2 using System.Reflection;
3 using System.Runtime.InteropServices;
5 class Program
7 [DllImport("foo.dll")]
8 public static extern void printf(string format, __arglist);
10 static int Main()
12 if (typeof (Program).GetMethod ("printf").CallingConvention != CallingConventions.VarArgs)
13 return 1;
15 Console.WriteLine ("OK");
16 return 0;