Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / benchmark / castclass.cs
1 using System;
2
3 public class Test {
4
5         int tmp = 1;
6         
7         public static int Main (string[] args) {
8                 int repeat = 1;
9                 
10                 
11                 if (args.Length == 1)
12                         repeat = Convert.ToInt32 (args [0]);
13                 
14                 Console.WriteLine ("Repeat = " + repeat);
15
16                 object a = new Test ();
17                 
18                 for (int i = 0; i < (repeat * 5000); i++)
19                         for (int j = 0; j < 100000; j++)
20                                 if (((Test)a).tmp != 1)
21                                         return 1;
22                 
23                 return 0;
24         }
25 }
26
27