2010-06-17 Geoff Norton <gnorton@novell.com>
[mono.git] / mono / benchmark / isinst.cs
blob7d5008147ea98d266d2e66d27d166b2d7921b046
1 using System;
3 public class Test {
5 public static int Main (string[] args) {
6 int repeat = 1;
8 if (args.Length == 1)
9 repeat = Convert.ToInt32 (args [0]);
11 Console.WriteLine ("Repeat = " + repeat);
13 object a = new Test ();
15 for (int i = 0; i < (repeat * 5000); i++)
16 for (int j = 0; j < 100000; j++)
17 if (!(a is Test))
18 return 1;
20 return 0;