projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf6f63b
)
Test based on #80418
author
Marek Safar
<marek.safar@gmail.com>
Tue, 13 Feb 2007 21:36:32 +0000
(21:36 -0000)
committer
Marek 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]
patch
|
blob
diff --git a/mcs/tests/test-562.cs
b/mcs/tests/test-562.cs
new file mode 100644
(file)
index 0000000..
882989d
--- /dev/null
+++ b/
mcs/tests/test-562.cs
@@ -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