Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / gtest-named-04.cs
1 class Test
2 {
3         static string V;
4
5         static int f (int a)
6         {
7                 V += a;
8                 return a;
9         }
10
11         static void m (int a, int b, int c)
12         {
13         }
14
15         static void m (int a, int b, int c, int d)
16         {
17         }
18
19         public static int Main ()
20         {
21                 V = "";
22                 m (f (1), b: f (2), c: f (3));
23                 if (V != "123")
24                         return 1;
25
26                 V = "";
27                 m (a: f (1), c: f (2), b: f (3));
28                 if (V != "123")
29                         return 2;
30
31                 V = "";
32                 m (f (1), c: f (2), b: f (3));
33                 if (V != "123")
34                         return 3;
35
36                 V = "";
37                 m (f (1), f (2), c: f (3), d: f (4));
38                 if (V != "1234")
39                         return 4;
40
41                 V = "";
42                 m (f (1), f (2), d: f (3), c: f (4));
43                 if (V != "1234")
44                         return 5;
45
46                 return 0;
47         }
48 }