Test based on #80418
authorMarek Safar <marek.safar@gmail.com>
Tue, 13 Feb 2007 21:36:32 +0000 (21:36 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 13 Feb 2007 21:36:32 +0000 (21:36 -0000)
svn path=/trunk/mcs/; revision=72796

mcs/tests/test-562.cs [new file with mode: 0644]

diff --git a/mcs/tests/test-562.cs b/mcs/tests/test-562.cs
new file mode 100644 (file)
index 0000000..882989d
--- /dev/null
@@ -0,0 +1,18 @@
+using System;
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+class Program
+{
+    [DllImport("foo.dll")]
+    public static extern void printf(string format, __arglist);
+
+    static int Main()
+    {
+        if (typeof (Program).GetMethod ("printf").CallingConvention != CallingConventions.VarArgs)
+            return 1;
+        
+        Console.WriteLine ("OK");
+        return 0;
+    }
+}
\ No newline at end of file