Fix NET_2_0 build
[mono-project.git] / mono / benchmark / inline2.cs
blob548a1e011588e17ee41cd58a7d680017e251b242
1 using System;
3 public class Test {
5 public static void test0 () {
6 test1 (0);
8 public static void test1 (int a) {
9 test2 (0, 1);
11 public static void test2 (int a, int b) {
12 test3 (0, 1, 2);
14 public static void test3 (int a, int b, int c) {
15 test4 (0, 1, 2, 3);
17 public static void test4 (int a, int b, int c, int d) {
20 public static int Main (string[] args) {
21 int repeat = 1;
23 if (args.Length == 1)
24 repeat = Convert.ToInt32 (args [0]);
26 Console.WriteLine ("Repeat = " + repeat);
28 for (int i = 0; i < repeat; i++)
29 for (int j = 0; j < 500000000; j++)
30 test0 ();
32 return 0;