projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2007-10-18 Zoltan Varga <vargaz@gmail.com>
[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
}