[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / dtest-named-02.cs
blob2ec4651bb17938644106e06dc17454d24e5cad3e
1 using System;
3 public class Test
5 static int counter;
7 static int M1 ()
9 if (counter != 2)
10 throw new ApplicationException ();
12 return counter++;
15 static int M2 ()
17 if (counter != 3)
18 throw new ApplicationException ();
20 return counter++;
23 static dynamic M3 ()
25 if (counter != 1)
26 throw new ApplicationException ();
28 return counter++;
31 static int Foo (int a, int b, int c)
33 if (a != 2)
34 return 1;
36 if (b != 3)
37 return 2;
39 if (c != 1)
40 return 3;
42 return 0;
45 public static int Main ()
47 counter = 1;
48 return Foo (c: M3 (), a: M1 (), b: M2 ());