Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / bug-46781.cs
1 using System;
2
3 public class Test {
4
5     private static IntPtr i = IntPtr.Zero;
6
7     public static IntPtr nati {
8         get {
9             if (i == IntPtr.Zero) {
10                 i = (IntPtr) 10001;
11             }
12             return i;
13         }
14     }
15
16     public static int Main() {
17         IntPtr[] nati = new IntPtr [1];
18         nati [0] = Test.nati;
19         Console.WriteLine ("nati [0] " + nati [0]);
20         return 0;
21     }
22 }