Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / benchmark / vt2.cs
1 using System;
2
3 public struct A {
4         public int a;
5         static int Main ()
6         {
7                 A a = new A ();
8                 A b = new A ();
9                 
10                 for (int i = 0; i < 50000000; i++) {
11                         a.a = i;
12                         b.a = i + 5;
13
14                         a.a = Foo (a, b);
15                         b.a = a.a + 8;
16                         
17                         Foo (a, b);
18                 }
19                 
20                 return 0;
21         }
22         
23         static int Foo (A a, A b) {
24                 return a.a + b.a;
25         }
26 }