[Mono.Profiler.Log] Fix excessive byte array allocations.
[mono.git] / mcs / tests / gtest-optional-16.cs
1 using System;
2
3 class MainClass
4 {
5         private static int TestParams (object ob = null, params object[] args)
6         {
7                 if (ob != "a")
8                         return 1;
9
10                 if (args.Length != 4)
11                         return 2;
12
13                 foreach (object o in args) {
14                         Console.WriteLine (o);
15                 }
16
17                 return 0;
18         }
19
20         public static int Main ()
21         {
22                 return TestParams ("a", "b", "c", "d", "e");
23         }
24 }