Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / benchmark / readonly-inst.cs
1 using System;
2
3 class A {
4         class B { public readonly C c = new C (); }
5         class C { public readonly D d = new D (); }
6         class D { public readonly E e = new E (); }
7         class E { public readonly int i = 1; }
8         
9         static readonly A foo = new A ();
10         static readonly A bar = new A ();
11         
12         readonly B b = new B ();
13         static int Main ()
14         {
15         
16                 for (int i = 0; i < 50000000; i++) {
17                         if (foo.b.c.d.e.i != bar.b.c.d.e.i)
18                                 return 1;
19                 }
20                 
21                 return 0;
22         }
23 }