2010-06-17 Geoff Norton <gnorton@novell.com>
[mono.git] / mono / benchmark / vt2.cs
blob295e7249e27dff87d9b6692de86c40166b7d0b3c
1 using System;
3 public struct A {
4 public int a;
5 static int Main ()
7 A a = new A ();
8 A b = new A ();
10 for (int i = 0; i < 50000000; i++) {
11 a.a = i;
12 b.a = i + 5;
14 a.a = Foo (a, b);
15 b.a = a.a + 8;
17 Foo (a, b);
20 return 0;
23 static int Foo (A a, A b) {
24 return a.a + b.a;