2009-03-11 Zoltan Varga <vargaz@gmail.com>
[mono-debugger.git] / mono / benchmark / readonly-vt.cs
blob127724bd80cf4e10f8ab8a460a9bb7887d4d4584
1 // Since the structs are readonly, the expression here is a jit time constant.
3 using System;
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; }
10 static readonly B b, bb;
12 static int Main ()
15 for (int i = 0; i < 50000000; i++) {
16 if (b.c.d.i != bb.c.d.i)
17 return 1;
20 return 0;