Add logic to object array typecheck to handle arrays of unmanaged pointers (#14733)
[mono-project.git] / mono / benchmark / readonly-inst.cs
blobec257d9fc3432e13e8f4ea16fef7eca35d681a85
1 using System;
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; }
9 static readonly A foo = new A ();
10 static readonly A bar = new A ();
12 readonly B b = new B ();
13 static int Main ()
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;
21 return 0;