Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / benchmark / readonly-vt.cs
1 // Since the structs are readonly, the expression here is a jit time constant.
2
3 using System;
4
5 struct A {
6         struct B { int dummy; public C c; }
7         struct C { int dummy; public D d; }
8         struct D { public int i; }
9         
10         static readonly B b, bb;
11         
12         static int Main ()
13         {
14         
15                 for (int i = 0; i < 50000000; i++) {
16                         if (b.c.d.i != bb.c.d.i)
17                                 return 1;
18                 }
19                 
20                 return 0;
21         }
22 }