[runtime] Coverage profiler fixes (#5698)
[mono.git] / mcs / tests / test-602.cs
1 using System;
2
3 public class C
4 {
5         public static int Main ()
6         {
7                 int s = Error ("{0} - {0}", "a");
8                 Console.WriteLine (s);
9                 
10                 if (s != 2)
11                         return 1;
12                 
13                 s = Test_A ("aaaa");
14                 if (s != 1)
15                         return 2;
16                 
17                 s = Test_C (typeof (C), null, null);
18                 Console.WriteLine (s);
19                 if (s != 2)
20                         return 3;
21                 
22                 return 0;
23         }
24                 
25         static public int Error (string format, params object[] args)
26         {
27                 return Format (format, args);
28         }
29         
30         static int Format (string s, object o)
31         {
32                 return 1;
33         }
34         
35         static int Format (string s, params object[] o)
36         {
37                 return 2;
38         }
39         
40         static int Format (string s, object o, params object[] o2)
41         {
42                 return 3;
43         }
44
45         static int Test_A (string s)
46         {
47                 return 1;
48         }
49         
50         static int Test_A (string s, params object[] o)
51         {
52                 return 2;
53         }       
54         
55         static int Test_C (Type t, params int[] a)
56         {
57                 return 1;
58         }
59         
60         static int Test_C (Type t, int[] a, int[] b)
61         {
62                 return 2;
63         }       
64 }