repo.or.cz
/
mono-debugger.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2009-03-11 Zoltan Varga <vargaz@gmail.com>
[mono-debugger.git]
/
mono
/
tests
/
bug-46781.cs
blob
419113949cc12aeb77aa2341f90346bb60aac8ad
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
}