Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@novell.com>2004-06-11 21:17:31 +0400
committerMartin Baulig <martin@novell.com>2004-06-11 21:17:31 +0400
commit0f688c0ac41359c900509e9f700beaccaf8daf1c (patch)
treedebdb2a758b3815f89a4642bc144f7629dbcdaab /mcs/tests/test-270.cs
parentb249b9955d1ae5e855f6e4a48da23d4ccb97f73b (diff)
2004-06-11 Martin Baulig <martin@ximian.com>
* test-269.cs: Another varargs test. svn path=/trunk/mcs/; revision=29356
Diffstat (limited to 'mcs/tests/test-270.cs')
-rw-r--r--mcs/tests/test-270.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/tests/test-270.cs b/mcs/tests/test-270.cs
new file mode 100644
index 00000000000..83de9898a16
--- /dev/null
+++ b/mcs/tests/test-270.cs
@@ -0,0 +1,23 @@
+using System;
+
+class X
+{
+ static int Test (string format, params object[] args)
+ {
+ return 1;
+ }
+
+ static int Test (string format, __arglist)
+ {
+ return 2;
+ }
+
+ static int Main ()
+ {
+ if (Test ("Hello", 1, 2, "World") != 1)
+ return 1;
+ if (Test ("Hello", __arglist ("Boston")) != 2)
+ return 2;
+ return 0;
+ }
+}