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