2009-03-11 Zoltan Varga <vargaz@gmail.com>
[mono-debugger.git] / mono / benchmark / castclass.cs
blob0864a1a35ed5941161f3fa4f8a1a6623ee4a1dea
1 using System;
3 public class Test {
5 int tmp = 1;
7 public static int Main (string[] args) {
8 int repeat = 1;
11 if (args.Length == 1)
12 repeat = Convert.ToInt32 (args [0]);
14 Console.WriteLine ("Repeat = " + repeat);
16 object a = new Test ();
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;
23 return 0;