[loader] ignore 'internalcall' impl attribute on 'abstract' methods
[mono-project.git] / mono / benchmark / inline3.cs
blob40e8c4445ff0c395e4bb9269883ebb95b3be12b8
1 using System;
3 public class Test {
5 public static int test0 ()
7 return test1 (1);
9 public static int test1 (int a)
11 return test2 (a, 2);
14 public static int test2 (int a, int b)
16 return test3 (a, b, 3);
19 public static int test3 (int a, int b, int c)
21 return test4 (a, b, c, 4);
24 public static int test4 (int a, int b, int c, int d)
26 return a + b + c + d;
29 public static int run ()
31 return test0 ();
34 public static int Main (string[] args) {
35 int repeat = 1;
37 if (args.Length == 1)
38 repeat = Convert.ToInt32 (args [0]);
40 Console.WriteLine ("Repeat = " + repeat);
42 for (int i = 0; i < repeat; i++)
43 for (int j = 0; j < 500000000; j++)
44 if (test0 () != 10)
45 return 1;
48 return 0;