Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / test-194.cs
1 //
2 // This test is for bug #39108. It checks to see that a params method
3 // is called in its right form.
4 //
5 using System;
6
7 public class TestParams
8 {
9         public static int Main (string[] args)
10         {
11                 int i;
12                 
13                 i = Params (null);
14                 if (i != 0)
15                         return 1;
16
17                 i = Params ((object) null);
18                 if (i != 1)
19                         return 2;
20
21                 return 0;
22         }
23         
24         private static int Params (params object[] ps)
25         {
26                 if (ps == null)
27                         return 0;
28                 else
29                         return 1;
30         }
31 }
32