Merge pull request #487 from mayerwin/patch-1
[mono.git] / mcs / tests / test-562.cs
1 using System;
2 using System.Reflection;
3 using System.Runtime.InteropServices;
4
5 class Program
6 {
7     [DllImport("foo.dll")]
8     public static extern void printf(string format, __arglist);
9
10     public static int Main()
11     {
12         if (typeof (Program).GetMethod ("printf").CallingConvention != CallingConventions.VarArgs)
13             return 1;
14         
15         Console.WriteLine ("OK");
16         return 0;
17     }
18 }