Add Mono.Runtime::GetNativeStackTrace method to make the new backtracing facility...
[mono-project.git] / mcs / tests / gtest-optional-09.cs
blob6b7df25980ad36b7ff70f6161fdf3b702ef490a6
1 using System;
3 public class Program
5 static int Test_1 (int i, sbyte s = 1)
7 return 1;
10 static int Test_1<T> (T s)
12 return 0;
15 static int Test_1 (int i, long s = 1)
17 return 2;
20 static int Test_2 (short s)
22 return 1;
25 static int Test_2 (int i, sbyte s = 1)
27 return 0;
30 static int Test_3 (string s)
32 return 0;
35 static int Test_3 (string s, sbyte s2 = 1)
37 return 1;
40 static int Test_4 (object o = null)
42 return 1;
45 static int Test_4 (params object[] a)
47 return 0;
50 static int Test_5 ()
52 return 0;
55 static int Test_5 (int i = 1, params object[] a)
57 return 1;
60 static int Test_6 (params object[] o)
62 return 0;
65 static int Test_6 (int i = 1, params object[] a)
67 return 1;
70 static int Test_7 (bool b, params object[] o)
72 return 0;
75 static int Test_7 (bool b, int i = 1, params object[] a)
77 return 1;
80 static int Main ()
82 if (Test_1 (5) != 0)
83 return 1;
85 if (Test_2 (6) != 0)
86 return 2;
88 if (Test_3 ("") != 0)
89 return 3;
91 if (Test_4 (null) != 0)
92 return 4;
94 if (Test_5 () != 0)
95 return 5;
97 if (Test_6 () != 0)
98 return 6;
100 if (Test_7 (false) != 0)
101 return 7;
103 Console.WriteLine ("ok");
104 return 0;