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:
authorMarek Safar <marek.safar@gmail.com>2007-12-21 16:21:13 +0300
committerMarek Safar <marek.safar@gmail.com>2007-12-21 16:21:13 +0300
commitb47438673e8d900dfd80f9eebdd0cadcf5f2089d (patch)
tree8a36f730eb085d3fb563d385fde0fdc9aa436bd3 /mcs/tests/test-602.cs
parent22f622fa4333e368f9b4547c82c32f90d0b996e9 (diff)
New test.
svn path=/trunk/mcs/; revision=91761
Diffstat (limited to 'mcs/tests/test-602.cs')
-rw-r--r--mcs/tests/test-602.cs64
1 files changed, 64 insertions, 0 deletions
diff --git a/mcs/tests/test-602.cs b/mcs/tests/test-602.cs
new file mode 100644
index 00000000000..1f96fe114c6
--- /dev/null
+++ b/mcs/tests/test-602.cs
@@ -0,0 +1,64 @@
+using System;
+
+public class C
+{
+ public static int Main ()
+ {
+ int s = Error ("{0} - {0}", "a");
+ Console.WriteLine (s);
+
+ if (s != 2)
+ return 1;
+
+ s = Test_A ("aaaa");
+ if (s != 1)
+ return 2;
+
+ s = Test_C (typeof (C), null, null);
+ Console.WriteLine (s);
+ if (s != 2)
+ return 3;
+
+ return 0;
+ }
+
+ static public int Error (string format, params object[] args)
+ {
+ return Format (format, args);
+ }
+
+ static int Format (string s, object o)
+ {
+ return 1;
+ }
+
+ static int Format (string s, params object[] o)
+ {
+ return 2;
+ }
+
+ static int Format (string s, object o, params object[] o2)
+ {
+ return 3;
+ }
+
+ static int Test_A (string s)
+ {
+ return 1;
+ }
+
+ static int Test_A (string s, params object[] o)
+ {
+ return 2;
+ }
+
+ static int Test_C (Type t, params int[] a)
+ {
+ return 1;
+ }
+
+ static int Test_C (Type t, int[] a, int[] b)
+ {
+ return 2;
+ }
+} \ No newline at end of file